public final class FieldDomain extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static FieldDomain |
UNSPECIFIED
The unspecified field domain
|
Constructor and Description |
---|
FieldDomain(ScalarValued lowerBound,
ScalarValued upperBound,
Set<? extends ScalarValued> values)
Creates a new field domain
|
Modifier and Type | Method and Description |
---|---|
void |
checkType(String field,
ScalarTokenType type)
Checks that the type of the domain matches the type of the field
|
boolean |
equals(Object obj) |
ScalarValued |
getLowerBound()
Returns the lower bound of the field or
null if unknown |
ScalarValued |
getUpperBound()
Returns the upper bound of the field or
null if unknown |
Set<ScalarValued> |
getValues()
Returns the allowed values of the field or
empty if unknown. |
boolean |
hasDomainValues()
Returns true if values are specified
|
int |
hashCode() |
boolean |
isSpecified()
Returns true if lower bound, upper bound, or values are specified
|
String |
toString() |
public static final FieldDomain UNSPECIFIED
public FieldDomain(ScalarValued lowerBound, ScalarValued upperBound, Set<? extends ScalarValued> values)
lowerBound
- the lower bound or null
if unknownupperBound
- the upper bound of null
if unknownvalues
- the possible values. Note that either null
or the empty set
is interpreted is unknown. The value of getValues()
will always be normalized to the empty set in the case of
unknown.public ScalarValued getLowerBound()
null
if unknownpublic ScalarValued getUpperBound()
null
if unknownpublic Set<ScalarValued> getValues()
empty
if unknown.public void checkType(String field, ScalarTokenType type)
field
- the name of the field, used for error handlingtype
- the type of the fieldIllegalArgumentException
- if domain is invalidpublic boolean isSpecified()
public boolean hasDomainValues()
Copyright © 2024 Actian Corporation. All rights reserved.