Interface PartitioningFunction

All Known Implementing Classes:
HashPartitioningFunction, HBasePartitioningFunction, RangePartitioningFunction

public interface PartitioningFunction
Represents a pluggable partitioning function; for use by operators that require custom partitioning
  • Method Details

    • getEvaluator

      Create an Evaluator bound to the specified context.
      Parameters:
      ctx - the partitioning context
      Returns:
      an Evaluator bound to the specified context.
    • validateForType

      void validateForType(RecordTokenType type)
      Performs validation of the specified input type
      Parameters:
      type - the input type
    • isFunctionOfInput

      boolean isFunctionOfInput()
      Returns true iff, given two identical rows of input, this function will return the same value. A return of true thus implies :
    • the function is deterministic
    • the function is stateless (not sensitive to previous values read or to input ordering)