Package | Description |
---|---|
org.ojai | |
org.ojai.store | |
org.ojai.store.base |
Modifier and Type | Method and Description |
---|---|
QueryCondition |
OjaiCodec.decodeCondition(T encodedCondition)
Decodes an instance of <T> into an OJAI
QueryCondition |
Modifier and Type | Method and Description |
---|---|
T |
OjaiCodec.encodeCondition(QueryCondition condition)
Encodes an OJAI
QueryCondition into an instance of <T> |
Modifier and Type | Method and Description |
---|---|
QueryCondition |
QueryCondition.and()
Begins a new AND compound condition block.
|
QueryCondition |
QueryCondition.build()
Closes all nested compound condition blocks.
|
QueryCondition |
QueryCondition.close()
Closes a compound condition block.
|
QueryCondition |
QueryCondition.condition(QueryCondition conditionToAdd)
Appends the specified condition to the current condition
block.
|
QueryCondition |
QueryCondition.elementAnd(FieldPath fieldPath)
Begins a new element-wise AND compound condition block.
|
QueryCondition |
QueryCondition.elementAnd(String fieldPath)
Begins a new element-wise AND compound condition block.
|
QueryCondition |
QueryCondition.equals(FieldPath path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
QueryCondition |
QueryCondition.equals(FieldPath path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified Map value. |
QueryCondition |
QueryCondition.equals(String path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
QueryCondition |
QueryCondition.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. |
QueryCondition |
QueryCondition.exists(FieldPath path)
Adds a condition that tests for existence of the specified
FieldPath . |
QueryCondition |
QueryCondition.exists(String path)
Adds a condition that tests for existence of the specified
FieldPath . |
QueryCondition |
QueryCondition.in(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 . |
QueryCondition |
QueryCondition.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 . |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified BigDecimal value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified boolean value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified byte value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified ByteBuffer value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified double value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified float value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified int value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified long value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
ODate value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Date value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
OInterval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Interval value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
OTime value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Time value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
OTimestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Timestamp value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified short value. |
QueryCondition |
QueryCondition.is(FieldPath path,
QueryCondition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified String value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified BigDecimal value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified boolean value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified byte value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified ByteBuffer value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified double value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified float value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified int value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified long value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
ODate value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Date value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
OInterval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Interval value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
OTime value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Time value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
OTimestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified Timestamp value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified short value. |
QueryCondition |
QueryCondition.is(String path,
QueryCondition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given QueryCondition.Op against
the specified String value. |
QueryCondition |
QueryCondition.like(FieldPath path,
String likeExpression)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified SQL LIKE
expression. |
QueryCondition |
QueryCondition.like(FieldPath path,
String likeExpression,
Character escapeChar)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified SQL LIKE
expression optionally escaped with the specified escape character. |
QueryCondition |
QueryCondition.like(String path,
String likeExpression)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified SQL LIKE
expression. |
QueryCondition |
QueryCondition.like(String path,
String likeExpression,
Character escapeChar)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified SQL LIKE
expression optionally escaped with the specified escape character. |
QueryCondition |
QueryCondition.matches(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. |
QueryCondition |
QueryCondition.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. |
QueryCondition |
Driver.newCondition()
Creates and returns a new QueryCondition object.
|
QueryCondition |
Connection.newCondition()
Creates and returns a new QueryCondition object.
|
QueryCondition |
QueryCondition.notEquals(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. |
QueryCondition |
QueryCondition.notEquals(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. |
QueryCondition |
QueryCondition.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. |
QueryCondition |
QueryCondition.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. |
QueryCondition |
QueryCondition.notExists(FieldPath path)
Adds a condition that tests for non-existence of the specified
FieldPath . |
QueryCondition |
QueryCondition.notExists(String path)
Adds a condition that tests for non-existence of the specified
FieldPath . |
QueryCondition |
QueryCondition.notIn(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 . |
QueryCondition |
QueryCondition.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 . |
QueryCondition |
QueryCondition.notLike(FieldPath path,
String likeExpression)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
SQL LIKE expression. |
QueryCondition |
QueryCondition.notLike(FieldPath path,
String likeExpression,
Character escapeChar)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
SQL LIKE expression optionally escaped with the specified escape character. |
QueryCondition |
QueryCondition.notLike(String path,
String likeExpression)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
SQL LIKE expression. |
QueryCondition |
QueryCondition.notLike(String path,
String likeExpression,
Character escapeChar)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
SQL LIKE expression optionally escaped with the specified escape character. |
QueryCondition |
QueryCondition.notMatches(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. |
QueryCondition |
QueryCondition.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. |
QueryCondition |
QueryCondition.notTypeOf(FieldPath path,
Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type . |
QueryCondition |
QueryCondition.notTypeOf(String path,
Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type . |
QueryCondition |
QueryCondition.or()
Begins a new OR compound condition block.
|
QueryCondition |
QueryCondition.sizeOf(FieldPath path,
QueryCondition.Op op,
long size)
Adds a condition that tests if the size of the
Value at the
specified FieldPath satisfies the given QueryCondition.Op and the size. |
QueryCondition |
QueryCondition.sizeOf(String path,
QueryCondition.Op op,
long size)
Adds a condition that tests if the size of the
Value at the
specified FieldPath satisfies the given QueryCondition.Op and the size. |
QueryCondition |
QueryCondition.typeOf(FieldPath path,
Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type . |
QueryCondition |
QueryCondition.typeOf(String path,
Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type . |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentStore.checkAndDelete(String _id,
QueryCondition condition)
Atomically evaluates the condition on given document and if the
condition holds true for the document then it is atomically deleted.
|
boolean |
DocumentStore.checkAndDelete(Value _id,
QueryCondition condition) |
boolean |
DocumentStore.checkAndMutate(String _id,
QueryCondition condition,
DocumentMutation mutation)
|
boolean |
DocumentStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation)
|
boolean |
DocumentStore.checkAndReplace(String _id,
QueryCondition condition,
Document doc)
Atomically evaluates the condition on the given document and if the
condition holds true for the document then it atomically replaces the document
with the given document.
|
boolean |
DocumentStore.checkAndReplace(Value _id,
QueryCondition condition,
Document doc) |
default boolean |
DocumentStore.checkAndUpdate(String _id,
QueryCondition condition,
DocumentMutation mutation)
Atomically evaluates the condition on a given document and if the
condition holds true for the document then a mutation is applied on the document.
|
default boolean |
DocumentStore.checkAndUpdate(Value _id,
QueryCondition condition,
DocumentMutation mutation)
Atomically evaluates the condition on a given document and if the
condition holds true for the document then a mutation is applied on the document.
|
QueryCondition |
QueryCondition.condition(QueryCondition conditionToAdd)
Appends the specified condition to the current condition
block.
|
DocumentStream |
DocumentStore.find(QueryCondition condition)
Deprecated.
|
DocumentStream |
DocumentStore.find(QueryCondition condition,
FieldPath... fieldPaths)
Deprecated.
|
DocumentStream |
DocumentStore.find(QueryCondition condition,
String... fieldPaths)
Deprecated.
|
Document |
DocumentStore.findById(String _id,
QueryCondition condition)
Returns the Document with the given `_id` if it matches the specified condition.
|
Document |
DocumentStore.findById(String _id,
QueryCondition condition,
FieldPath... fieldPaths)
Returns the Document with the given `_id` if it matches the specified condition.
|
Document |
DocumentStore.findById(String _id,
QueryCondition condition,
String... fieldPaths)
Returns the Document with the given `_id` if it matches the specified condition.
|
Document |
DocumentStore.findById(Value _id,
QueryCondition condition)
Returns the Document with the given `_id` if it matches the specified condition.
|
Document |
DocumentStore.findById(Value _id,
QueryCondition condition,
FieldPath... fieldPaths)
Returns the Document with the given `_id` if it matches the specified condition.
|
Document |
DocumentStore.findById(Value _id,
QueryCondition condition,
String... fieldPaths)
Returns the Document with the given `_id` if it matches the specified condition.
|
Query |
Query.where(QueryCondition condition)
Sets the filtering condition for the query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ForwardingStore.checkAndDelete(String id,
QueryCondition condition) |
boolean |
ForwardingStore.checkAndDelete(Value _id,
QueryCondition condition) |
boolean |
ForwardingStore.checkAndMutate(String id,
QueryCondition condition,
DocumentMutation m) |
boolean |
ForwardingStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation) |
boolean |
ForwardingStore.checkAndReplace(String id,
QueryCondition condition,
Document r) |
boolean |
ForwardingStore.checkAndReplace(Value _id,
QueryCondition condition,
Document doc) |
DocumentStream |
ForwardingStore.find(QueryCondition c) |
DocumentStream |
ForwardingStore.find(QueryCondition c,
FieldPath... paths) |
DocumentStream |
ForwardingStore.find(QueryCondition c,
String... paths) |
Document |
ForwardingStore.findById(String id,
QueryCondition c) |
Document |
ForwardingStore.findById(String id,
QueryCondition c,
FieldPath... paths) |
Document |
ForwardingStore.findById(String id,
QueryCondition c,
String... paths) |
Document |
ForwardingStore.findById(Value _id,
QueryCondition condition) |
Document |
ForwardingStore.findById(Value _id,
QueryCondition condition,
FieldPath... fieldPaths) |
Document |
ForwardingStore.findById(Value _id,
QueryCondition condition,
String... fieldPaths) |
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.