Class BoundedColumnValuePartitionFunction

  • All Implemented Interfaces:
    Serializable, PartitionFunction

    public class BoundedColumnValuePartitionFunction
    extends Object
    implements PartitionFunction
    Implementation of PartitionFunction which partitions based configured column values. "columnPartitionMap": { "subject": { "functionName": "BoundedColumnValue", "functionConfig": { "columnValues": "Maths|English|Chemistry", "columnValuesDelimiter": "|" }, "numPartitions": 4 } } With this partition config on column "subject", partitionId would be 1 for Maths, 2 for English and 3 for Chemistry. partitionId would be "0" for all other values which may occur, therefore 'numPartitions' is set to 4.
    See Also:
    Serialized Form
    • Constructor Detail

      • BoundedColumnValuePartitionFunction

        public BoundedColumnValuePartitionFunction​(int numPartitions,
                                                   Map<String,​String> functionConfig)