Package org.apache.cassandra.cql3
Enum Class Operator
- All Implemented Interfaces:
Serializable,Comparable<Operator>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()booleanChecks if this operator is CONTAINS operator.booleanChecks if this operator is CONTAINS KEY operator.booleanisIN()Checks if this operator is an IN operator.abstract booleanisSatisfiedBy(AbstractType<?> type, ByteBuffer leftOperand, ByteBuffer rightOperand) Whether 2 values satisfy this operator (given the type they should be compared with).booleanisSlice()Checks if this operator is a slice operator.static OperatorDeserializes aOperatorinstance from the specified input.inttoString()static OperatorReturns the enum constant of this class with the specified name.static Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteTo(DataOutput output) Write the serialized version of thisOperatorto the specified output.
-
Enum Constant Details
-
EQ
-
LT
-
LTE
-
GTE
-
GT
-
IN
-
CONTAINS
-
CONTAINS_KEY
-
NEQ
-
IS_NOT
-
LIKE_PREFIX
-
LIKE_SUFFIX
-
LIKE_CONTAINS
-
LIKE_MATCHES
-
LIKE
-
ANN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
writeTo
Write the serialized version of thisOperatorto the specified output.- Parameters:
output- the output to write to- Throws:
IOException- if an I/O problem occurs while writing to the specified output
-
getValue
public int getValue() -
readFrom
Deserializes aOperatorinstance from the specified input.- Parameters:
input- the input to read from- Returns:
- the
Operatorinstance deserialized - Throws:
IOException- if a problem occurs while deserializing theTypeinstance.
-
isSatisfiedBy
public abstract boolean isSatisfiedBy(AbstractType<?> type, ByteBuffer leftOperand, ByteBuffer rightOperand) Whether 2 values satisfy this operator (given the type they should be compared with). -
serializedSize
public int serializedSize() -
isSlice
public boolean isSlice()Checks if this operator is a slice operator.- Returns:
trueif this operator is a slice operator,falseotherwise.
-
toString
-
isIN
public boolean isIN()Checks if this operator is an IN operator.- Returns:
trueif this operator is an IN operator,falseotherwise.
-
isContains
public boolean isContains()Checks if this operator is CONTAINS operator.- Returns:
trueif this operator is a CONTAINS operator,falseotherwise.
-
isContainsKey
public boolean isContainsKey()Checks if this operator is CONTAINS KEY operator.- Returns:
trueif this operator is a CONTAINS operator,falseotherwise.
-