Class PartitionFunctionFactory
- java.lang.Object
-
- org.apache.pinot.segment.spi.partition.PartitionFunctionFactory
-
public class PartitionFunctionFactory extends Object
Factory to build instances ofPartitionFunction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartitionFunctionFactory.PartitionFunctionType
-
Method Summary
Modifier and Type Method Description static PartitionFunctiongetPartitionFunction(String functionName, int numPartitions, Map<String,String> functionConfig)This method generates and returns a partition function based on the provided string.
-
-
-
Method Detail
-
getPartitionFunction
public static PartitionFunction getPartitionFunction(String functionName, int numPartitions, Map<String,String> functionConfig)
This method generates and returns a partition function based on the provided string.- Parameters:
functionName- Name of partition functionnumPartitions- Number of partitions.functionConfig- The function configuration for given function.- Returns:
- Partition function
-
-