Condition.Op| Constructor and Description |
|---|
ConditionImpl()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionImpl |
and()
Begins a new AND compound condition block.
|
String |
asInfix() |
String |
asPrefix() |
ConditionImpl |
build()
Closes all nested compound condition blocks.
|
ConditionImpl |
cloneOptimized() |
ConditionImpl |
close()
Closes a compound condition block.
|
ConditionImpl |
condition(Condition conditionToAdd)
Appends the specified condition to the current condition
block.
|
ConditionImpl |
equals(org.ojai.FieldPath path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
ConditionImpl |
equals(org.ojai.FieldPath path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified Map value. |
boolean |
equals(Object obj) |
ConditionImpl |
equals(String path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
ConditionImpl |
equals(String path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified Map value. |
ConditionImpl |
exists(org.ojai.FieldPath path)
Adds a condition that tests for existence of the specified
FieldPath. |
ConditionImpl |
exists(String path)
Adds a condition that tests for existence of the specified
FieldPath. |
ConditionDescriptor |
getDescriptor() |
ConditionDescriptor |
getDescriptor(com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> pathIdMap) |
Set<org.ojai.FieldPath> |
getProjections() |
List<ConditionNode.RowkeyRange> |
getRowkeyRanges() |
int |
hashCode() |
ConditionImpl |
in(org.ojai.FieldPath path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is equal to at least one of the values in the
specified List. |
ConditionImpl |
in(String path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is equal to at least one of the values in the
specified List. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
Date value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
org.ojai.types.Interval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
Time value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value. |
ConditionImpl |
is(org.ojai.FieldPath path,
Condition.Op op,
Timestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value. |
ConditionImpl |
is(String path,
Condition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value. |
Condition |
is(String path,
Condition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value. |
ConditionImpl |
is(String path,
Condition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value. |
ConditionImpl |
is(String path,
Condition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. |
ConditionImpl |
is(String path,
Condition.Op op,
Date value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value. |
ConditionImpl |
is(String path,
Condition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value. |
ConditionImpl |
is(String path,
Condition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value. |
ConditionImpl |
is(String path,
Condition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value. |
ConditionImpl |
is(String path,
Condition.Op op,
org.ojai.types.Interval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value. |
ConditionImpl |
is(String path,
Condition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value. |
ConditionImpl |
is(String path,
Condition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value. |
ConditionImpl |
is(String path,
Condition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value. |
ConditionImpl |
is(String path,
Condition.Op op,
Time value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value. |
ConditionImpl |
is(String path,
Condition.Op op,
Timestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value. |
boolean |
isBuilt() |
boolean |
isEmpty() |
String |
jsonString() |
ConditionImpl |
matches(org.ojai.FieldPath path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified regular
expression. |
ConditionImpl |
matches(String path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified regular
expression. |
ConditionImpl |
notEquals(org.ojai.FieldPath path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified List value. |
ConditionImpl |
notEquals(org.ojai.FieldPath path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified Map value. |
ConditionImpl |
notEquals(String path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified List value. |
ConditionImpl |
notEquals(String path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified Map value. |
ConditionImpl |
notExists(org.ojai.FieldPath path)
Adds a condition that tests for non-existence of the specified
FieldPath. |
ConditionImpl |
notExists(String path)
Adds a condition that tests for non-existence of the specified
FieldPath. |
ConditionImpl |
notIn(org.ojai.FieldPath path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is not equal to any of the values in the
specified List. |
ConditionImpl |
notIn(String path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is not equal to any of the values in the
specified List. |
ConditionImpl |
notMatches(org.ojai.FieldPath path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
regular expression. |
ConditionImpl |
notMatches(String path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
regular expression. |
ConditionImpl |
notTypeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type. |
ConditionImpl |
notTypeOf(String path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type. |
ConditionImpl |
or()
Begins a new OR compound condition block.
|
static Condition |
parseFrom(ByteBuffer buf)
Parses the serialized
Condition from the bytes in the specified ByteBuffer. |
String |
toString()
Returns a string representation of the object.
|
ConditionImpl |
typeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type. |
ConditionImpl |
typeOf(String path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type. |
public boolean isEmpty()
public boolean isBuilt()
public String asPrefix()
String representing the prefix form of this
condition expressionpublic String jsonString()
public Set<org.ojai.FieldPath> getProjections()
public String asInfix()
String representing the infix form of this
condition expression.public String toString()
asInfix().public ConditionImpl and()
Conditionpublic ConditionImpl or()
Conditionpublic ConditionImpl close()
Conditionpublic ConditionImpl build()
Conditionpublic ConditionImpl cloneOptimized()
public ConditionImpl condition(Condition conditionToAdd)
Conditionpublic ConditionImpl exists(String path)
ConditionFieldPath.public ConditionImpl exists(org.ojai.FieldPath path)
ConditionFieldPath.public ConditionImpl notExists(String path)
ConditionFieldPath.public ConditionImpl in(String path, List<? extends Object> listOfValue)
ConditionValue at the specified
FieldPath is equal to at least one of the values in the
specified List.public ConditionImpl in(org.ojai.FieldPath path, List<? extends Object> listOfValue)
ConditionValue at the specified
FieldPath is equal to at least one of the values in the
specified List.public ConditionImpl notIn(String path, List<? extends Object> listOfValue)
ConditionValue at the specified
FieldPath is not equal to any of the values in the
specified List.public ConditionImpl notIn(org.ojai.FieldPath path, List<? extends Object> listOfValue)
ConditionValue at the specified
FieldPath is not equal to any of the values in the
specified List.public ConditionImpl notExists(org.ojai.FieldPath path)
ConditionFieldPath.public ConditionImpl typeOf(String path, org.ojai.Value.Type type)
ConditionValue at the specified
FieldPath is of the specified Type.public ConditionImpl typeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
ConditionValue at the specified
FieldPath is of the specified Type.public ConditionImpl notTypeOf(String path, org.ojai.Value.Type type)
ConditionValue at the specified
FieldPath is not of the specified Type.public ConditionImpl notTypeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
ConditionValue at the specified
FieldPath is not of the specified Type.public ConditionImpl matches(String path, String regex)
ConditionValue at the specified
FieldPath is a String and matches the specified regular
expression.public ConditionImpl matches(org.ojai.FieldPath path, String regex)
ConditionValue at the specified
FieldPath is a String and matches the specified regular
expression.public ConditionImpl notMatches(String path, String regex)
ConditionValue at the specified
FieldPath is a String and does not match the specified
regular expression.notMatches in interface Conditionpath - the FieldPath to testregex - the reference regular expressionthis for chained invocationpublic ConditionImpl notMatches(org.ojai.FieldPath path, String regex)
ConditionValue at the specified
FieldPath is a String and does not match the specified
regular expression.notMatches in interface Conditionpath - the FieldPath to testregex - the reference regular expressionthis for chained invocationpublic Condition is(String path, Condition.Op op, boolean value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, boolean value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value.public ConditionImpl is(String path, Condition.Op op, String value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified String value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, String value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified String value.public ConditionImpl is(String path, Condition.Op op, byte value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, byte value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value.public ConditionImpl is(String path, Condition.Op op, short value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified short value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, short value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified short value.public ConditionImpl is(String path, Condition.Op op, int value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified int value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, int value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified int value.public ConditionImpl is(String path, Condition.Op op, long value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified long value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, long value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified long value.public ConditionImpl is(String path, Condition.Op op, float value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified float value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, float value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified float value.public ConditionImpl is(String path, Condition.Op op, double value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified double value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, double value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified double value.public ConditionImpl is(String path, Condition.Op op, BigDecimal value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, BigDecimal value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value.public ConditionImpl is(String path, Condition.Op op, Date value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, Date value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value.public ConditionImpl is(String path, Condition.Op op, Time value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, Time value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value.public ConditionImpl is(String path, Condition.Op op, Timestamp value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, Timestamp value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value.public ConditionImpl is(String path, Condition.Op op, org.ojai.types.Interval value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, org.ojai.types.Interval value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value.public ConditionImpl is(String path, Condition.Op op, ByteBuffer value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. Only the byte sequence between
the position and limit in the ByteBuffer is
used as the reference value. The function does not alter the passed
ByteBuffer state or content.public ConditionImpl is(org.ojai.FieldPath path, Condition.Op op, ByteBuffer value)
ConditionValue at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. Only the byte sequence between
the position and limit in the ByteBuffer is
used as the reference value. The function does not alter the passed
ByteBuffer state or content.public ConditionImpl equals(String path, Map<String,? extends Object> value)
ConditionValue at the specified
FieldPath equals the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.public ConditionImpl equals(org.ojai.FieldPath path, Map<String,? extends Object> value)
ConditionValue at the specified
FieldPath equals the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.public ConditionImpl equals(String path, List<? extends Object> value)
ConditionValue at the specified
FieldPath equals the specified List value.public ConditionImpl equals(org.ojai.FieldPath path, List<? extends Object> value)
ConditionValue at the specified
FieldPath equals the specified List value.public ConditionImpl notEquals(String path, Map<String,? extends Object> value)
ConditionValue at the specified
FieldPath does not equal the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.public ConditionImpl notEquals(org.ojai.FieldPath path, Map<String,? extends Object> value)
ConditionValue at the specified
FieldPath does not equal the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.public ConditionImpl notEquals(String path, List<? extends Object> value)
ConditionValue at the specified
FieldPath does not equal the specified List value.public ConditionImpl notEquals(org.ojai.FieldPath path, List<? extends Object> value)
ConditionValue at the specified
FieldPath does not equal the specified List value.@API.Internal public ConditionDescriptor getDescriptor()
DirectByteBuffer containing the serialized form of this condition@API.Internal public ConditionDescriptor getDescriptor(com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> pathIdMap)
pathIdMap - a Mapping between FieldPath and Column Family IDDirectByteBuffer containing the serialized form of this condition@API.Internal public List<ConditionNode.RowkeyRange> getRowkeyRanges()
List of ConditionNode.RowkeyRange over which@API.Internal public static Condition parseFrom(ByteBuffer buf)
Condition from the bytes in the specified ByteBuffer.buf - the ByteBuffer to parseIllegalArgumentException - if the bytes in the specified ByteBuffer
cannot be parsed as a ConditionCopyright © 2015 Mapr Technologies, Inc.. All rights reserved.