Interface Distribution

All Superinterfaces:
Expression
All Known Implementing Classes:
DistributionDTO, Distributions.DistributionImpl

@Evolving public interface Distribution extends Expression
An interface that defines how data is distributed across partitions.
  • Method Details

    • strategy

      Strategy strategy()
      Returns:
      the distribution strategy name.
    • number

      int number()
      Returns:
      The number of buckets/distribution. For example, if the distribution strategy is HASH and the number is 10, then the data is distributed across 10 buckets.
    • expressions

      Expression[] expressions()
      Returns:
      The expressions passed to the distribution function.
    • children

      default Expression[] children()
      Specified by:
      children in interface Expression
      Returns:
      An array of the children of this node. Children should not change.
    • equals

      default boolean equals(Distribution distribution)
      Indicates whether some other object is "equal to" this one.
      Parameters:
      distribution - The reference distribution object with which to compare.
      Returns:
      returns true if this object is the same as the obj argument; false otherwise.