Enum Constant and Description |
---|
CONTAINS |
CONTAINS_KEY |
EQ |
GT |
GTE |
IN |
IS_NOT |
LIKE |
LIKE_CONTAINS |
LIKE_MATCHES |
LIKE_PREFIX |
LIKE_SUFFIX |
LT |
LTE |
NEQ |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
boolean |
isSatisfiedBy(AbstractType<?> type,
java.nio.ByteBuffer leftOperand,
java.nio.ByteBuffer rightOperand)
Whether 2 values satisfy this operator (given the type they should be compared with).
|
boolean |
isSlice()
Checks if this operator is a slice operator.
|
static Operator |
readFrom(java.io.DataInput input)
Deserializes a
Operator instance from the specified input. |
int |
serializedSize() |
java.lang.String |
toString() |
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(java.io.DataOutput output)
Write the serialized version of this
Operator to the specified output. |
public static final Operator EQ
public static final Operator LT
public static final Operator LTE
public static final Operator GTE
public static final Operator GT
public static final Operator IN
public static final Operator CONTAINS
public static final Operator CONTAINS_KEY
public static final Operator NEQ
public static final Operator IS_NOT
public static final Operator LIKE_PREFIX
public static final Operator LIKE_SUFFIX
public static final Operator LIKE_CONTAINS
public static final Operator LIKE_MATCHES
public static final Operator LIKE
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void writeTo(java.io.DataOutput output) throws java.io.IOException
Operator
to the specified output.output
- the output to write tojava.io.IOException
- if an I/O problem occurs while writing to the specified outputpublic int getValue()
public static Operator readFrom(java.io.DataInput input) throws java.io.IOException
Operator
instance from the specified input.input
- the input to read fromOperator
instance deserializedjava.io.IOException
- if a problem occurs while deserializing the Type
instance.public boolean isSatisfiedBy(AbstractType<?> type, java.nio.ByteBuffer leftOperand, java.nio.ByteBuffer rightOperand)
java.lang.AssertionError
- for CONTAINS and CONTAINS_KEY as this doesn't support those operators yetpublic int serializedSize()
public boolean isSlice()
true
if this operator is a slice operator, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Enum<Operator>
Copyright © 2017 The Apache Software Foundation