public class ParquetPartitionDescriptor extends AbstractPartitionDescriptor
locationSuperList, sublistsCreatedPARTITION_BATCH_SIZE| Constructor and Description |
|---|
ParquetPartitionDescriptor(PlannerSettings settings,
DrillScanRel scanRel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createPartitionSublists()
Create sublists of the partition locations, each sublist of size
at most
PartitionDescriptor.PARTITION_BATCH_SIZE |
org.apache.calcite.rel.core.TableScan |
createTableScan(List<PartitionLocation> newPartitionLocation,
boolean wasAllPartitionsPruned)
Methods create a new TableScan rel node, given the lists of new partitions or new files to SCAN.
|
org.apache.calcite.rel.core.TableScan |
createTableScan(List<PartitionLocation> newPartitionLocation,
String cacheFileRoot,
boolean wasAllPartitionsPruned,
MetadataContext metaContext)
Create a new TableScan rel node, given the lists of new partitions or new files to scan and a path
to a metadata cache file
|
String |
getBaseTableLocation() |
Integer |
getIdIfValid(String name)
Check to see if the name is a partition name.
|
int |
getMaxHierarchyLevel() |
int |
getPartitionHierarchyIndex(String partitionName) |
TypeProtos.MajorType |
getVectorType(SchemaPath column,
PlannerSettings plannerSettings)
Method returns the Major type associated with the given column
|
boolean |
isPartitionName(String name) |
void |
populatePartitionVectors(ValueVector[] vectors,
List<PartitionLocation> partitions,
BitSet partitionColumnBitSet,
Map<Integer,String> fieldNameMap)
Method creates an in memory representation of all the partitions.
|
iterator, supportsMetadataCachePruningpublic ParquetPartitionDescriptor(PlannerSettings settings, DrillScanRel scanRel)
public int getPartitionHierarchyIndex(String partitionName)
public boolean isPartitionName(String name)
public Integer getIdIfValid(String name)
PartitionDescriptorname - The field name you want to compare to partition names.public int getMaxHierarchyLevel()
public void populatePartitionVectors(ValueVector[] vectors, List<PartitionLocation> partitions, BitSet partitionColumnBitSet, Map<Integer,String> fieldNameMap)
PartitionDescriptorvectors - - Array of vectors in the container that need to be populatedpartitions - - List of all the partitions that exist in the tablepartitionColumnBitSet - - Partition columns selected in the queryfieldNameMap - - Maps field ordinal to the field namepublic TypeProtos.MajorType getVectorType(SchemaPath column, PlannerSettings plannerSettings)
PartitionDescriptorcolumn - - column whose type should be determinedpublic String getBaseTableLocation()
protected void createPartitionSublists()
AbstractPartitionDescriptorPartitionDescriptor.PARTITION_BATCH_SIZEcreatePartitionSublists in class AbstractPartitionDescriptorpublic org.apache.calcite.rel.core.TableScan createTableScan(List<PartitionLocation> newPartitionLocation, String cacheFileRoot, boolean wasAllPartitionsPruned, MetadataContext metaContext) throws Exception
PartitionDescriptorcreateTableScan in interface PartitionDescriptorcreateTableScan in class AbstractPartitionDescriptorExceptionpublic org.apache.calcite.rel.core.TableScan createTableScan(List<PartitionLocation> newPartitionLocation, boolean wasAllPartitionsPruned) throws Exception
PartitionDescriptorExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.