public abstract class AbstractRangePartitionFunction extends Object implements PartitionFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
RANGE_PARTITION_EXPR_NAME |
| Constructor and Description |
|---|
AbstractRangePartitionFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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
|
abstract List<FieldReference> |
getPartitionRefList()
Return the list of FieldReferences that participate in the partitioning function
|
abstract void |
setup(List<VectorWrapper<?>> partitionKeys)
Setup method for the partitioning function
|
public static final String RANGE_PARTITION_EXPR_NAME
public abstract List<FieldReference> getPartitionRefList()
PartitionFunctiongetPartitionRefList in interface PartitionFunctionpublic abstract void setup(List<VectorWrapper<?>> partitionKeys)
PartitionFunctionsetup in interface PartitionFunctionpartitionKeys - a list of partition columns on which range partitioning is neededpublic abstract int eval(int index,
int numPartitions)
PartitionFunctioneval in interface PartitionFunctionindex - the integer index into the partition keys vector for a specific 'row' of valuesnumPartitions - the max number of partitions that are allowedpublic FieldReference getPartitionFieldRef()
PartitionFunctiongetPartitionFieldRef in interface PartitionFunctionCopyright © 2022 The Apache Software Foundation. All rights reserved.