Interface Distribution
- All Superinterfaces:
Expression
- All Known Implementing Classes:
DistributionDTO
,Distributions.DistributionImpl
An interface that defines how data is distributed across partitions.
-
Field Summary
Fields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault Expression[]
children()
default boolean
equals
(Distribution distribution) Indicates whether some other object is "equal to" this one.int
number()
strategy()
Methods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
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
- Specified by:
children
in interfaceExpression
- Returns:
- An array of the children of this node. Children should not change.
-
equals
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.
-