Search in sources :

Example 1 with RowGroupReadEntry

use of org.apache.drill.exec.store.parquet.RowGroupReadEntry in project drill by apache.

the class HiveDrillNativeParquetScan method getSpecificScan.

@Override
public SubScan getSpecificScan(int minorFragmentId) {
    List<RowGroupReadEntry> readEntries = getReadEntries(minorFragmentId);
    HivePartitionHolder subPartitionHolder = new HivePartitionHolder();
    for (RowGroupReadEntry readEntry : readEntries) {
        List<String> values = hivePartitionHolder.get(readEntry.getPath());
        subPartitionHolder.add(readEntry.getPath(), values);
    }
    return new HiveDrillNativeParquetRowGroupScan(getUserName(), hiveStoragePlugin, readEntries, columns, subPartitionHolder, confProperties, readerConfig, filter, getTableMetadata().getSchema());
}
Also used : RowGroupReadEntry(org.apache.drill.exec.store.parquet.RowGroupReadEntry)

Aggregations

RowGroupReadEntry (org.apache.drill.exec.store.parquet.RowGroupReadEntry)1