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 DistributionDTO
A 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.Builder
builder()
Creates a new instance ofDistributionDTO.Builder
.boolean
Returns the name of the distribution.int
hashCode()
int
number()
Returns the number of buckets.strategy()
Returns the strategy of the distribution.void
Validates the distribution.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.rel.expressions.distributions.Distribution
children, equals
Methods 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:
strategy
in interfaceDistribution
- Returns:
- The strategy of the distribution.
-
number
public int number()Returns the number of buckets.- Specified by:
number
in interfaceDistribution
- Returns:
- The number of buckets.
-
expressions
Returns the name of the distribution.- Specified by:
expressions
in 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()
-