Package io.trino.spi.predicate
Class AllOrNoneValueSet
java.lang.Object
io.trino.spi.predicate.AllOrNoneValueSet
- All Implemented Interfaces:
ValueSet
Set that either includes all values, or excludes all values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Object value) booleanlonggetType()inthashCode()booleanisAll()booleanbooleanisNone()booleantoString()toString(ConnectorSession session) toString(ConnectorSession session, int limit) tryExpandRanges(int valuesLimit) Try to expandvalueSetinto a discrete set of (at mostlimit) objects.
-
Constructor Details
-
AllOrNoneValueSet
-
-
Method Details
-
getType
-
isNone
public boolean isNone() -
isAll
public boolean isAll() -
isSingleValue
public boolean isSingleValue()- Specified by:
isSingleValuein interfaceValueSet
-
getSingleValue
- Specified by:
getSingleValuein interfaceValueSet
-
isDiscreteSet
public boolean isDiscreteSet()- Specified by:
isDiscreteSetin interfaceValueSet
-
getDiscreteSet
- Specified by:
getDiscreteSetin interfaceValueSet
-
containsValue
- Specified by:
containsValuein interfaceValueSet
-
getAllOrNone
-
getValuesProcessor
- Specified by:
getValuesProcessorin interfaceValueSet
-
intersect
-
union
-
complement
- Specified by:
complementin interfaceValueSet
-
toString
-
toString
-
toString
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceValueSet
-
tryExpandRanges
Description copied from interface:ValueSetTry to expandvalueSetinto a discrete set of (at mostlimit) objects. For example: [1, 5] can be expanded into {1, 2, 3, 4, 5}. If the data type is not supported or the expansion results in too many values,Optional.empty()is returned.- Specified by:
tryExpandRangesin interfaceValueSet
-
hashCode
public int hashCode() -
equals
-