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, wait
children, equals
references
public static final DistributionDTO NONE
public static DistributionDTO.Builder builder()
DistributionDTO.Builder
.public FunctionArg[] args()
public Strategy strategy()
strategy
in interface Distribution
public int number()
number
in interface Distribution
public Expression[] expressions()
expressions
in interface Distribution
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object