use of org.apache.drill.exec.store.hive.HiveTableWrapper in project drill by apache.
the class TableEntryCacheLoader method load.
@Override
@SuppressWarnings("NullableProblems")
public HiveReadEntry load(TableName key) throws Exception {
Table table;
List<Partition> partitions;
synchronized (client) {
table = getTable(key);
partitions = getPartitions(key);
}
HiveTableWithColumnCache hiveTable = new HiveTableWithColumnCache(table, new ColumnListsCache(table));
List<HiveTableWrapper.HivePartitionWrapper> partitionWrappers = getPartitionWrappers(partitions, hiveTable);
return new HiveReadEntry(new HiveTableWrapper(hiveTable), partitionWrappers);
}
Aggregations