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()
PartitionFunction
getPartitionRefList
in interface PartitionFunction
public abstract void setup(List<VectorWrapper<?>> partitionKeys)
PartitionFunction
setup
in interface PartitionFunction
partitionKeys
- a list of partition columns on which range partitioning is neededpublic abstract int eval(int index, int numPartitions)
PartitionFunction
eval
in interface PartitionFunction
index
- the integer index into the partition keys vector for a specific 'row' of valuesnumPartitions
- the max number of partitions that are allowedpublic FieldReference getPartitionFieldRef()
PartitionFunction
getPartitionFieldRef
in interface PartitionFunction
Copyright © 1970 The Apache Software Foundation. All rights reserved.