public interface PartitionFunction
Modifier and Type | Method and Description |
---|---|
int |
eval(int index,
int numPartitions)
Evaluate a partitioning function for a particular row index and return the partition id
|
FieldReference |
getPartitionFieldRef()
Returns a FieldReference (LogicalExpression) for the partition function
|
List<FieldReference> |
getPartitionRefList()
Return the list of FieldReferences that participate in the partitioning function
|
void |
setup(List<VectorWrapper<?>> partitionKeys)
Setup method for the partitioning function
|
List<FieldReference> getPartitionRefList()
void setup(List<VectorWrapper<?>> partitionKeys)
partitionKeys
- a list of partition columns on which range partitioning is neededint eval(int index, int numPartitions)
index
- the integer index into the partition keys vector for a specific 'row' of valuesnumPartitions
- the max number of partitions that are allowedFieldReference getPartitionFieldRef()
Copyright © 2021 The Apache Software Foundation. All rights reserved.