private static <T> Supplier<T> memoize(Supplier<? extends T> supplier) {
    return com.google.common.base.Suppliers.memoize(supplier::get)::get; // cache the supplier result
  }
Get the nth column from the row result.
The index is 0 based unlike in JDBC.
hplsql/src/main/java/org/apache/hive/hplsql/executor/QueryResult.java