Package org.apache.gravitino.dto.rel
Class DistributionDTO
java.lang.Object
org.apache.gravitino.dto.rel.DistributionDTO
- All Implemented Interfaces:
Distribution,Expression
Data transfer object representing distribution information.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DistributionDTOA DistributionDTO instance that represents no distribution.Fields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the arguments of the function.static DistributionDTO.Builderbuilder()Creates a new instance ofDistributionDTO.Builder.booleanReturns the name of the distribution.inthashCode()intnumber()Returns the number of buckets.strategy()Returns the strategy of the distribution.voidValidates the distribution.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.gravitino.rel.expressions.distributions.Distribution
children, equalsMethods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Field Details
-
NONE
A DistributionDTO instance that represents no distribution.
-
-
Method Details
-
builder
Creates a new instance ofDistributionDTO.Builder.- Returns:
- The new instance.
-
args
Returns the arguments of the function.- Returns:
- The arguments of the function.
-
strategy
Returns the strategy of the distribution.- Specified by:
strategyin interfaceDistribution- Returns:
- The strategy of the distribution.
-
number
public int number()Returns the number of buckets.- Specified by:
numberin interfaceDistribution- Returns:
- The number of buckets.
-
expressions
Returns the name of the distribution.- Specified by:
expressionsin interfaceDistribution- Returns:
- The name of the distribution.
-
validate
Validates the distribution.- Parameters:
columns- The columns to be validated.- Throws:
IllegalArgumentException- If the distribution is invalid.
-
equals
-
hashCode
public int hashCode()
-