public class DistributionDTO extends java.lang.Object implements Distribution
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributionDTO.Builder
Builder for
DistributionDTO. |
| Modifier and Type | Field and Description |
|---|---|
static DistributionDTO |
NONE
A DistributionDTO instance that represents no distribution.
|
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE| Modifier and Type | Method and Description |
|---|---|
FunctionArg[] |
args()
Returns the arguments of the function.
|
static DistributionDTO.Builder |
builder()
Creates a new instance of
DistributionDTO.Builder. |
boolean |
equals(java.lang.Object o) |
Expression[] |
expressions()
Returns the name of the distribution.
|
int |
hashCode() |
int |
number()
Returns the number of buckets.
|
Strategy |
strategy()
Returns the strategy of the distribution.
|
void |
validate(ColumnDTO[] columns)
Validates the distribution.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitchildren, equalsreferencespublic static final DistributionDTO NONE
public static DistributionDTO.Builder builder()
DistributionDTO.Builder.public FunctionArg[] args()
public Strategy strategy()
strategy in interface Distributionpublic int number()
number in interface Distributionpublic Expression[] expressions()
expressions in interface Distributionpublic void validate(ColumnDTO[] columns) throws java.lang.IllegalArgumentException
columns - The columns to be validated.java.lang.IllegalArgumentException - If the distribution is invalid.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object