public interface PartitionDescriptor extends Iterable<List<PartitionLocation>>
| Modifier and Type | Field and Description |
|---|---|
static int |
PARTITION_BATCH_SIZE |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.rel.core.TableScan |
createTableScan(List<PartitionLocation> newPartitions,
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> newPartitions,
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.
|
boolean |
supportsMetadataCachePruning() |
static final int PARTITION_BATCH_SIZE
int getPartitionHierarchyIndex(String partitionName)
boolean isPartitionName(String name)
Integer getIdIfValid(String name)
name - The field name you want to compare to partition names.int getMaxHierarchyLevel()
void populatePartitionVectors(ValueVector[] vectors, List<PartitionLocation> partitions, BitSet partitionColumnBitSet, Map<Integer,String> fieldNameMap)
vectors - - 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 nameTypeProtos.MajorType getVectorType(SchemaPath column, PlannerSettings plannerSettings)
column - - column whose type should be determinedplannerSettings - org.apache.calcite.rel.core.TableScan createTableScan(List<PartitionLocation> newPartitions, boolean wasAllPartitionsPruned) throws Exception
newPartitions - wasAllPartitionsPruned - Exceptionorg.apache.calcite.rel.core.TableScan createTableScan(List<PartitionLocation> newPartitions, String cacheFileRoot, boolean wasAllPartitionsPruned, MetadataContext metaContext) throws Exception
newPartitions - cacheFileRoot - wasAllPartitionsPruned - metaContext - Exceptionboolean supportsMetadataCachePruning()
String getBaseTableLocation()
Copyright © 2017 The Apache Software Foundation. All rights reserved.