Class Domain
java.lang.Object
io.trino.spi.predicate.Domain
Defines the possible values of a single variable in terms of its valid scalar values and nullability.
For example:
- Domain.none() => no scalar values allowed, NULL not allowed
- Domain.all() => all scalar values allowed, NULL allowed
- Domain.onlyNull() => no scalar values allowed, NULL allowed
- Domain.notNull() => all scalar values allowed, NULL not allowed
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Domainbooleanstatic DomainbooleanlonggetType()inthashCode()booleanincludesNullableValue(Object value) booleanisAll()booleanisNone()booleanbooleanbooleanbooleanbooleanstatic DomainmultipleValues(Type type, List<?> values) static DomainmultipleValues(Type type, List<?> values, boolean nullAllowed) static Domainstatic Domainstatic Domainbooleansimplify()Reduces the number of discrete components in the Domain if there are too many.simplify(int threshold) static DomainsingleValue(Type type, Object value) static DomainsingleValue(Type type, Object value, boolean nullAllowed) toString()toString(ConnectorSession session) toString(ConnectorSession session, int limit) static Domain
-
Field Details
-
DEFAULT_COMPACTION_THRESHOLD
public static final int DEFAULT_COMPACTION_THRESHOLD- See Also:
-
-
Method Details
-
create
-
none
-
all
-
onlyNull
-
notNull
-
singleValue
-
singleValue
-
multipleValues
-
multipleValues
-
getType
-
getValues
-
isNullAllowed
public boolean isNullAllowed() -
isNone
public boolean isNone() -
isAll
public boolean isAll() -
isSingleValue
public boolean isSingleValue() -
isNullableSingleValue
public boolean isNullableSingleValue() -
isOnlyNull
public boolean isOnlyNull() -
getSingleValue
-
getNullableSingleValue
-
includesNullableValue
-
isNullableDiscreteSet
public boolean isNullableDiscreteSet() -
getNullableDiscreteSet
-
overlaps
-
contains
-
intersect
-
union
-
union
-
complement
-
subtract
-
hashCode
-
equals
-
simplify
Reduces the number of discrete components in the Domain if there are too many. -
simplify
-
toString
-
toString
-
toString
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
-