BlockMetaData blockMetaData = footer.getBlocks().get(entry.getRowGroupIndex());
recordCount = (int) blockMetaData.getRowCount();
ColumnChunkIncReadStore pageReadStore = new ColumnChunkIncReadStore(recordCount,
codecFactoryExposer.getCodecFactory(), fs, filePath);
for (String[] path : schema.getPaths()) {
Type type = schema.getType(path);
if (type.isPrimitive()) {
ColumnChunkMetaData md = paths.get(ColumnPath.get(path));
pageReadStore.addColumn(schema.getColumnDescription(path), md);
}
}
writer = new VectorContainerWriter(output);
recordMaterializer = new DrillParquetRecordMaterializer(writer, projection);