@API.Internal public class ConditionImpl extends Object implements org.ojai.store.QueryCondition
QueryCondition interface.| Constructor and Description |
|---|
ConditionImpl()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionImpl |
and() |
String |
asInfix() |
String |
asPrefix() |
ConditionImpl |
build() |
ConditionImpl |
cloneOptimized() |
ConditionImpl |
close() |
ConditionImpl |
condition(org.ojai.store.QueryCondition conditionToAdd) |
ConditionImpl |
equals(org.ojai.FieldPath path,
List<? extends Object> value) |
ConditionImpl |
equals(org.ojai.FieldPath path,
Map<String,? extends Object> value) |
boolean |
equals(Object obj) |
ConditionImpl |
equals(String path,
List<? extends Object> value) |
ConditionImpl |
equals(String path,
Map<String,? extends Object> value) |
ConditionImpl |
exists(org.ojai.FieldPath path) |
ConditionImpl |
exists(String path) |
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) |
ConditionImpl |
in(String path,
List<? extends Object> listOfValue) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
BigDecimal value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
boolean value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
byte value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
ByteBuffer value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
double value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
float value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
int value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
long value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.ODate value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OInterval value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OTime value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OTimestamp value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
short value) |
ConditionImpl |
is(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
String value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
BigDecimal value) |
org.ojai.store.QueryCondition |
is(String path,
org.ojai.store.QueryCondition.Op op,
boolean value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
byte value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
ByteBuffer value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
double value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
float value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
int value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
long value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.ODate value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OInterval value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OTime value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
org.ojai.types.OTimestamp value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
short value) |
ConditionImpl |
is(String path,
org.ojai.store.QueryCondition.Op op,
String value) |
boolean |
isBuilt() |
boolean |
isEmpty() |
String |
jsonString() |
org.ojai.store.QueryCondition |
like(org.ojai.FieldPath path,
String likeExpression) |
org.ojai.store.QueryCondition |
like(org.ojai.FieldPath path,
String likeExpression,
Character escapeChar) |
org.ojai.store.QueryCondition |
like(String path,
String likeExpression) |
org.ojai.store.QueryCondition |
like(String path,
String likeExpression,
Character escapeChar) |
ConditionImpl |
matches(org.ojai.FieldPath path,
String regex) |
ConditionImpl |
matches(String path,
String regex) |
ConditionImpl |
notEquals(org.ojai.FieldPath path,
List<? extends Object> value) |
ConditionImpl |
notEquals(org.ojai.FieldPath path,
Map<String,? extends Object> value) |
ConditionImpl |
notEquals(String path,
List<? extends Object> value) |
ConditionImpl |
notEquals(String path,
Map<String,? extends Object> value) |
ConditionImpl |
notExists(org.ojai.FieldPath path) |
ConditionImpl |
notExists(String path) |
ConditionImpl |
notIn(org.ojai.FieldPath path,
List<? extends Object> listOfValue) |
ConditionImpl |
notIn(String path,
List<? extends Object> listOfValue) |
org.ojai.store.QueryCondition |
notLike(org.ojai.FieldPath path,
String likeExpression) |
org.ojai.store.QueryCondition |
notLike(org.ojai.FieldPath path,
String likeExpression,
Character escapeChar) |
org.ojai.store.QueryCondition |
notLike(String path,
String likeExpression) |
org.ojai.store.QueryCondition |
notLike(String path,
String likeExpression,
Character escapeChar) |
ConditionImpl |
notMatches(org.ojai.FieldPath path,
String regex) |
ConditionImpl |
notMatches(String path,
String regex) |
ConditionImpl |
notTypeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type) |
ConditionImpl |
notTypeOf(String path,
org.ojai.Value.Type type) |
ConditionImpl |
or() |
static org.ojai.store.QueryCondition |
parseFrom(ByteBuffer buf)
Parses the serialized
QueryCondition from the bytes in the specified ByteBuffer. |
org.ojai.store.QueryCondition |
sizeOf(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
long size) |
org.ojai.store.QueryCondition |
sizeOf(String path,
org.ojai.store.QueryCondition.Op op,
long size) |
String |
toString()
Returns a string representation of the object.
|
ConditionImpl |
typeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type) |
ConditionImpl |
typeOf(String path,
org.ojai.Value.Type type) |
public boolean isEmpty()
isEmpty in interface org.ojai.store.QueryConditionpublic boolean isBuilt()
isBuilt in interface org.ojai.store.QueryConditionpublic 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()
and in interface org.ojai.store.QueryConditionpublic ConditionImpl or()
or in interface org.ojai.store.QueryConditionpublic ConditionImpl close()
close in interface org.ojai.store.QueryConditionpublic ConditionImpl build()
build in interface org.ojai.store.QueryConditionpublic ConditionImpl cloneOptimized()
public ConditionImpl condition(org.ojai.store.QueryCondition conditionToAdd)
condition in interface org.ojai.store.QueryConditionpublic ConditionImpl exists(String path)
exists in interface org.ojai.store.QueryConditionpublic ConditionImpl exists(org.ojai.FieldPath path)
exists in interface org.ojai.store.QueryConditionpublic ConditionImpl notExists(String path)
notExists in interface org.ojai.store.QueryConditionpublic ConditionImpl in(String path, List<? extends Object> listOfValue)
in in interface org.ojai.store.QueryConditionpublic ConditionImpl in(org.ojai.FieldPath path, List<? extends Object> listOfValue)
in in interface org.ojai.store.QueryConditionpublic ConditionImpl notIn(String path, List<? extends Object> listOfValue)
notIn in interface org.ojai.store.QueryConditionpublic ConditionImpl notIn(org.ojai.FieldPath path, List<? extends Object> listOfValue)
notIn in interface org.ojai.store.QueryConditionpublic ConditionImpl notExists(org.ojai.FieldPath path)
notExists in interface org.ojai.store.QueryConditionpublic ConditionImpl typeOf(String path, org.ojai.Value.Type type)
typeOf in interface org.ojai.store.QueryConditionpublic ConditionImpl typeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
typeOf in interface org.ojai.store.QueryConditionpublic ConditionImpl notTypeOf(String path, org.ojai.Value.Type type)
notTypeOf in interface org.ojai.store.QueryConditionpublic ConditionImpl notTypeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
notTypeOf in interface org.ojai.store.QueryConditionpublic ConditionImpl matches(String path, String regex)
matches in interface org.ojai.store.QueryConditionpublic ConditionImpl matches(org.ojai.FieldPath path, String regex)
matches in interface org.ojai.store.QueryConditionpublic ConditionImpl notMatches(String path, String regex)
notMatches in interface org.ojai.store.QueryConditionpublic ConditionImpl notMatches(org.ojai.FieldPath path, String regex)
notMatches in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition like(String path, String likeExpression)
like in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition like(org.ojai.FieldPath path,
String likeExpression)
like in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition like(String path, String likeExpression, Character escapeChar)
like in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition like(org.ojai.FieldPath path,
String likeExpression,
Character escapeChar)
like in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition notLike(String path, String likeExpression)
notLike in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition notLike(org.ojai.FieldPath path,
String likeExpression)
notLike in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition notLike(String path, String likeExpression, Character escapeChar)
notLike in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition notLike(org.ojai.FieldPath path,
String likeExpression,
Character escapeChar)
notLike in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition is(String path, org.ojai.store.QueryCondition.Op op, boolean value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, boolean value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, String value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, String value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, byte value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, byte value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, short value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, short value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, int value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, int value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, long value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, long value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, float value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, float value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, double value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, double value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, BigDecimal value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, BigDecimal value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, org.ojai.types.ODate value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, org.ojai.types.ODate value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OTime value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OTime value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OTimestamp value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OTimestamp value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OInterval value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, org.ojai.types.OInterval value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(String path, org.ojai.store.QueryCondition.Op op, ByteBuffer value)
is in interface org.ojai.store.QueryConditionpublic ConditionImpl is(org.ojai.FieldPath path, org.ojai.store.QueryCondition.Op op, ByteBuffer value)
is in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition sizeOf(String path, org.ojai.store.QueryCondition.Op op, long size)
sizeOf in interface org.ojai.store.QueryConditionpublic org.ojai.store.QueryCondition sizeOf(org.ojai.FieldPath path,
org.ojai.store.QueryCondition.Op op,
long size)
sizeOf in interface org.ojai.store.QueryConditionpublic ConditionImpl equals(String path, Map<String,? extends Object> value)
equals in interface org.ojai.store.QueryConditionpublic ConditionImpl equals(org.ojai.FieldPath path, Map<String,? extends Object> value)
equals in interface org.ojai.store.QueryConditionpublic ConditionImpl equals(String path, List<? extends Object> value)
equals in interface org.ojai.store.QueryConditionpublic ConditionImpl equals(org.ojai.FieldPath path, List<? extends Object> value)
equals in interface org.ojai.store.QueryConditionpublic ConditionImpl notEquals(String path, Map<String,? extends Object> value)
notEquals in interface org.ojai.store.QueryConditionpublic ConditionImpl notEquals(org.ojai.FieldPath path, Map<String,? extends Object> value)
notEquals in interface org.ojai.store.QueryConditionpublic ConditionImpl notEquals(String path, List<? extends Object> value)
notEquals in interface org.ojai.store.QueryConditionpublic ConditionImpl notEquals(org.ojai.FieldPath path, List<? extends Object> value)
notEquals in interface org.ojai.store.QueryCondition@API.Internal public ConditionDescriptor getDescriptor()
ByteBuffer 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 IDByteBuffer containing the serialized form of this condition@API.Internal public List<ConditionNode.RowkeyRange> getRowkeyRanges()
List of ConditionNode.RowkeyRange over which@API.Internal public static org.ojai.store.QueryCondition parseFrom(ByteBuffer buf)
QueryCondition from the bytes in the specified ByteBuffer.buf - the ByteBuffer to parseIllegalArgumentException - if the bytes in the specified ByteBuffer
cannot be parsed as a QueryConditionCopyright © 2016 Mapr Technologies, Inc.. All rights reserved.