Package | Description |
---|---|
org.ojai | |
org.ojai.json | |
org.ojai.store | |
org.ojai.store.base | |
org.ojai.store.cdc | |
org.ojai.util |
Modifier and Type | Field and Description |
---|---|
static FieldPath |
DocumentConstants.DOCUMENT_FIELD
FieldPath of the key used to refer the entire Document.
|
static FieldPath |
FieldPath.EMPTY |
static FieldPath |
DocumentConstants.ID_FIELD
FieldPath of the key used to refer the id of a Document.
|
Modifier and Type | Method and Description |
---|---|
FieldPath |
FieldPath.cloneAfterAncestor(FieldPath ancestor) |
FieldPath |
FieldPath.cloneWithNewChild(FieldSegment childSegment) |
FieldPath |
FieldPath.cloneWithNewChild(int index) |
FieldPath |
FieldPath.cloneWithNewChild(String childSegment) |
FieldPath |
FieldPath.cloneWithNewParent(String parentSegment) |
static FieldPath |
FieldPath.parseFrom(String fieldPath)
Use this method to translate a
String into FieldPath . |
Modifier and Type | Method and Description |
---|---|
DocumentReader |
Document.asReader(FieldPath fieldPath) |
FieldPath |
FieldPath.cloneAfterAncestor(FieldPath ancestor) |
int |
FieldPath.compareTo(FieldPath other)
Compares two FieldPath segment by segment from left to right.
|
Document |
Document.delete(FieldPath fieldPath)
Deletes the value at the specified
FieldPath if it exists. |
ByteBuffer |
Document.getBinary(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
ByteBuffer
object or null if the specified FieldPath does not
exist in the document. |
boolean |
Document.getBoolean(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
boolean . |
Boolean |
Document.getBooleanObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Boolean
object or null if the specified FieldPath does
not exist in the document. |
byte |
Document.getByte(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
byte . |
Byte |
Document.getByteObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Byte
object or null if the specified FieldPath does
not exist in the document. |
ODate |
Document.getDate(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
ODate
object or null if the specified FieldPath does not
exist in the document. |
BigDecimal |
Document.getDecimal(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
BigDecimal
object or null if the specified FieldPath does not
exist in the document. |
double |
Document.getDouble(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
double . |
Double |
Document.getDoubleObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Double
object or null if the specified FieldPath does
not exist in the document. |
float |
Document.getFloat(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
float . |
Float |
Document.getFloatObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Float
object or null if the specified FieldPath does
not exist in the document. |
int |
Document.getInt(FieldPath fieldPath)
Returns the value at the specified fieldPath as an
int . |
OInterval |
Document.getInterval(FieldPath fieldPath)
Returns the value at the specified fieldPath as an
OInterval
object or null if the specified FieldPath does not
exist in the document. |
Integer |
Document.getIntObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as an
Integer
object or null if the specified FieldPath does
not exist in the document. |
List<Object> |
Document.getList(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
List
object or null if the specified FieldPath does not
exist in the document. |
long |
Document.getLong(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
long . |
Long |
Document.getLongObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Long
object or null if the specified FieldPath does
not exist in the document. |
Map<String,Object> |
Document.getMap(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Map
object or null if the specified FieldPath does not
exist in the document. |
short |
Document.getShort(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
short . |
Short |
Document.getShortObj(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Short
object or null if the specified FieldPath does
not exist in the document. |
String |
Document.getString(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
String
object or null if the specified FieldPath does
not exist in the document. |
OTime |
Document.getTime(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
OTime
object or null if the specified FieldPath does not
exist in the document. |
OTimestamp |
Document.getTimestamp(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
OTimestamp
object or null if the specified FieldPath does not
exist in the document. |
Value |
Document.getValue(FieldPath fieldPath)
Returns the value at the specified fieldPath as a
Value
object or null if the specified FieldPath does not
exist in the document. |
boolean |
FieldPath.isAtOrAbove(FieldPath other) |
boolean |
FieldPath.isAtOrBelow(FieldPath other) |
FieldSegment |
FieldPath.segmentAfterAncestor(FieldPath ancestor) |
Document |
Document.set(FieldPath fieldPath,
BigDecimal value)
Sets the value of the specified fieldPath in this Document to the
specified BigDecimal.
|
Document |
Document.set(FieldPath fieldPath,
boolean value)
Sets the value of the specified fieldPath in this Document to the
specified boolean value.
|
Document |
Document.set(FieldPath fieldPath,
byte value)
Sets the value of the specified fieldPath in this Document to the
specified byte value.
|
Document |
Document.set(FieldPath fieldPath,
byte[] value)
Sets the value of the specified fieldPath in this Document to the
specified binary value.
|
Document |
Document.set(FieldPath fieldPath,
byte[] value,
int off,
int len)
Sets the value of the specified fieldPath in this Document to the
specified binary value.
|
Document |
Document.set(FieldPath fieldPath,
ByteBuffer value)
Sets the value of the specified fieldPath in this Document to the
specified ByteBuffer.
|
Document |
Document.set(FieldPath fieldPath,
Document value)
Sets the value of the specified fieldPath in this Document to the
specified Document.
|
Document |
Document.set(FieldPath fieldPath,
double value)
Sets the value of the specified fieldPath in this Document to the
specified double value.
|
Document |
Document.set(FieldPath fieldPath,
float value)
Sets the value of the specified fieldPath in this Document to the
specified float value.
|
Document |
Document.set(FieldPath fieldPath,
int value)
Sets the value of the specified fieldPath in this Document to the
specified int value.
|
Document |
Document.set(FieldPath fieldPath,
List<? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Object List.
|
Document |
Document.set(FieldPath fieldPath,
long value)
Sets the value of the specified fieldPath in this Document to the
specified long value.
|
Document |
Document.set(FieldPath fieldPath,
Map<String,? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Map.
|
Document |
Document.set(FieldPath fieldPath,
ODate value)
Sets the value of the specified fieldPath in this Document to the
specified Date.
|
Document |
Document.set(FieldPath fieldPath,
OInterval value)
Sets the value of the specified fieldPath in this Document to the
specified Interval.
|
Document |
Document.set(FieldPath fieldPath,
OTime value)
Sets the value of the specified fieldPath in this Document to the
specified Time.
|
Document |
Document.set(FieldPath fieldPath,
OTimestamp value)
Sets the value of the specified fieldPath in this Document to the
specified Timestamp.
|
Document |
Document.set(FieldPath fieldPath,
short value)
Sets the value of the specified fieldPath in this Document to the
specified short value.
|
Document |
Document.set(FieldPath fieldPath,
String value)
Sets the value of the specified fieldPath in this Document to the
specified String.
|
Document |
Document.set(FieldPath fieldPath,
Value value)
Sets the value of the specified fieldPath in this Document to the
specified Value.
|
Document |
Document.setArray(FieldPath fieldPath,
boolean[] values)
Sets the value of the specified fieldPath in this Document to the
specified boolean array.
|
Document |
Document.setArray(FieldPath fieldPath,
byte[] values)
Sets the value of the specified fieldPath in this Document to the
specified byte array.
|
Document |
Document.setArray(FieldPath fieldPath,
double[] values)
Sets the value of the specified fieldPath in this Document to the
specified double array.
|
Document |
Document.setArray(FieldPath fieldPath,
float[] values)
Sets the value of the specified fieldPath in this Document to the
specified float array.
|
Document |
Document.setArray(FieldPath fieldPath,
int[] values)
Sets the value of the specified fieldPath in this Document to the
specified int array.
|
Document |
Document.setArray(FieldPath fieldPath,
long[] values)
Sets the value of the specified fieldPath in this Document to the
specified long array.
|
Document |
Document.setArray(FieldPath fieldPath,
Object... values)
Sets the value of the specified fieldPath in this Document to the
specified Object array.
|
Document |
Document.setArray(FieldPath fieldPath,
short[] values)
Sets the value of the specified fieldPath in this Document to the
specified short array.
|
Document |
Document.setArray(FieldPath fieldPath,
String[] values)
Sets the value of the specified fieldPath in this Document to the
specified String array.
|
Document |
Document.setNull(FieldPath fieldPath)
Sets the value of the specified fieldPath in this Document to
Value.Type.NULL . |
Modifier and Type | Method and Description |
---|---|
static DocumentStream |
Json.newDocumentStream(org.apache.hadoop.fs.FileSystem fs,
String path,
Map<FieldPath,Value.Type> fieldPathTypeMap) |
static DocumentStream |
Json.newDocumentStream(InputStream in,
Map<FieldPath,Value.Type> fieldPathTypeMap)
Returns a new instance of s JSON DocumentStream from the specified InputStream
using the FieldPath => Type mapping to decode the JSON tokens from the stream.
|
Modifier and Type | Method and Description |
---|---|
FieldPath |
MutationOp.getFieldPath() |
Modifier and Type | Method and Description |
---|---|
DocumentMutation |
DocumentMutation.append(FieldPath path,
byte[] value)
Appends the given byte array to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(FieldPath path,
byte[] value,
int offset,
int len)
Appends the given byte array to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(FieldPath path,
ByteBuffer value)
Appends the given ByteBuffer to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(FieldPath path,
List<? extends Object> list)
Appends elements of the given list to an existing ARRAY at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(FieldPath path,
String string)
Appends the given string to an existing STRING at the given FieldPath.
|
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
BigDecimal dec) |
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
byte dec)
Atomically decrements the given field (in dot separated notation)
of the given row id.
|
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
double dec) |
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
float dec) |
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
int dec) |
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
long dec) |
DocumentMutation |
DocumentMutation.decrement(FieldPath path,
short dec) |
void |
DocumentStore.delete(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.delete(DocumentStream stream,
FieldPath fieldAsKey) |
DocumentMutation |
DocumentMutation.delete(FieldPath path)
Deletes the field at the given path.
|
QueryCondition |
QueryCondition.elementAnd(FieldPath 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.exists(FieldPath path)
Adds a condition that tests for existence of the specified
FieldPath . |
DocumentStream |
DocumentStore.find(FieldPath... fieldPaths)
Deprecated.
|
DocumentStream |
DocumentStore.find(QueryCondition condition,
FieldPath... fieldPaths)
Deprecated.
|
Document |
DocumentStore.findById(String _id,
FieldPath... fieldPaths)
Returns the Document with the given `_id` or
null if the document with that `_id`
doesn't exist in this DocumentStore. |
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(Value _id,
FieldPath... fieldPaths)
Returns the Document with the given `_id` or
null if the document with that `_id`
doesn't exist in this DocumentStore. |
Document |
DocumentStore.findById(Value _id,
QueryCondition condition,
FieldPath... fieldPaths)
Returns the Document with the given `_id` if it matches the specified condition.
|
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 . |
DocumentMutation |
DocumentMutation.increment(FieldPath path,
BigDecimal inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
byte inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
double inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
float inc)
Atomically increment the field specified by the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
int inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
long inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(FieldPath path,
short inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
void |
DocumentStore.insert(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.insert(DocumentStream stream,
FieldPath fieldAsKey) |
void |
DocumentStore.insertOrReplace(Document doc,
FieldPath fieldAsKey)
Inserts or replaces a new document in this DocumentStore with the value of
the specified Field as the
_id . |
void |
DocumentStore.insertOrReplace(DocumentStream stream,
FieldPath fieldAsKey)
Inserts all documents from the specified DocumentStream into this DocumentStore
using the field specified by parameter
fieldAsKey as the "_id" field. |
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.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.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. |
DocumentMutation |
DocumentMutation.merge(FieldPath path,
Document doc)
Merges the existing MAP at the given FieldPath with the specified Document.
|
DocumentMutation |
DocumentMutation.merge(FieldPath path,
Map<String,Object> map)
Merges the existing MAP at the given FieldPath with the specified Map.
|
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.notExists(FieldPath 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.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.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.notTypeOf(FieldPath path,
Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type . |
Query |
Query.orderBy(FieldPath... fieldPaths)
Sets the sort ordering of the returned Documents to the ascending order of specified field paths.
|
Query |
Query.orderBy(FieldPath field,
SortOrder order)
Sets the sort ordering of the returned Documents to the specified field and order.
|
void |
DocumentStore.replace(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.replace(DocumentStream stream,
FieldPath fieldAsKey) |
Query |
Query.select(FieldPath... fieldPaths)
Adds the list of field paths to the list of projected fields.
|
DocumentMutation |
DocumentMutation.set(FieldPath path,
BigDecimal bd)
Sets the field at the given FieldPath to the specified
BigDecimal value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
boolean b)
Sets the field at the given FieldPath to the specified
boolean value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
byte b)
Sets the field at the given FieldPath to the specified
byte value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
ByteBuffer bb)
Sets the field at the given FieldPath to the specified
ByteBuffer . |
DocumentMutation |
DocumentMutation.set(FieldPath path,
Document doc)
Sets the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.set(FieldPath path,
double d)
Sets the field at the given FieldPath to the specified
double value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
float f)
Sets the field at the given FieldPath to the specified
float value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
int i)
Sets the field at the given FieldPath to the specified
int value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
List<? extends Object> list)
Sets the field at the given FieldPath to the specified
List . |
DocumentMutation |
DocumentMutation.set(FieldPath path,
long l)
Sets the field at the given FieldPath to the specified
long value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
Map<String,? extends Object> map)
Sets the field at the given FieldPath to the specified
Map . |
DocumentMutation |
DocumentMutation.set(FieldPath path,
ODate d)
Sets the field at the given FieldPath to the specified
Date value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
OInterval intv)
Sets the field at the given FieldPath to the specified
Interval value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
OTime t)
Sets the field at the given FieldPath to the specified
Time value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
OTimestamp ts)
Sets the field at the given FieldPath to the specified
Timestamp value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
short s)
Sets the field at the given FieldPath to the specified
short value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
String value)
Sets the field at the given FieldPath to the specified
String value. |
DocumentMutation |
DocumentMutation.set(FieldPath path,
Value value)
Sets the field at the given FieldPath to the specified value.
|
void |
MutationOp.setFieldPath(FieldPath fieldPath) |
DocumentMutation |
DocumentMutation.setNull(FieldPath path)
Sets the field at the given FieldPath to
NULL Value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
BigDecimal bd)
Sets or replaces the field at the given FieldPath to the specified
BigDecimal value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
boolean b)
Sets or replaces the field at the given FieldPath to the specified
boolean value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
byte b)
Sets or replaces the field at the given FieldPath to the specified
byte value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
ByteBuffer bb)
Sets or replaces the field at the given FieldPath to the specified
ByteBuffer . |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
Document doc)
Sets or replaces the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
double d)
Sets or replaces the field at the given FieldPath to the specified
double value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
float f)
Sets or replaces the field at the given FieldPath to the specified
float value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
int i)
Sets or replaces the field at the given FieldPath to the specified
int value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
List<? extends Object> list)
Sets or replaces the field at the given FieldPath to the specified
List . |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
long l)
Sets or replaces the field at the given FieldPath to the specified
long value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
Map<String,? extends Object> map)
Sets or replaces the field at the given FieldPath to the specified
Map . |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
ODate d)
Sets or replaces the field at the given FieldPath to the specified
Date value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
OInterval intv)
Sets or replaces the field at the given FieldPath to the specified
Interval . |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
OTime t)
Sets or replaces the field at the given FieldPath to the specified
Time value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
OTimestamp ts)
Sets or replaces the field at the given FieldPath to the specified
Timestamp value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
short s)
Sets or replaces the field at the given FieldPath to the specified
short value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
String string)
Sets or replaces the field at the given FieldPath to the specified
String value. |
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
Value value)
Sets or replaces the field at the given FieldPath to the new value.
|
DocumentMutation |
DocumentMutation.setOrReplaceNull(FieldPath path)
Sets or replaces the field at the given FieldPath to
NULL Value. |
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.typeOf(FieldPath 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 |
---|---|
void |
ForwardingStore.delete(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.delete(DocumentStream rs,
FieldPath fieldAsKey) |
DocumentStream |
ForwardingStore.find(FieldPath... paths) |
DocumentStream |
ForwardingStore.find(QueryCondition c,
FieldPath... paths) |
Document |
ForwardingStore.findById(String id,
FieldPath... paths) |
Document |
ForwardingStore.findById(String id,
QueryCondition c,
FieldPath... paths) |
Document |
ForwardingStore.findById(Value _id,
FieldPath... fieldPaths) |
Document |
ForwardingStore.findById(Value _id,
QueryCondition condition,
FieldPath... fieldPaths) |
void |
ForwardingStore.insert(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.insert(DocumentStream rs,
FieldPath fieldAsKey) |
void |
ForwardingStore.insertOrReplace(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.insertOrReplace(DocumentStream rs,
FieldPath fieldAsKey) |
void |
ForwardingStore.replace(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.replace(DocumentStream rs,
FieldPath fieldAsKey) |
Modifier and Type | Method and Description |
---|---|
Iterator<KeyValue<FieldPath,ChangeNode>> |
ChangeDataRecord.iterator()
Returns an iterator over a set of
ChangeNode s which are part
of this change data record. |
Modifier and Type | Method and Description |
---|---|
static FieldPath[] |
Fields.toFieldPathArray(String... fieldPaths) |
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
Documents.getBinary(Document document,
FieldPath fieldPath,
ByteBuffer defaultValue)
Returns the value at the specified fieldPath as a
ByteBuffer object or
the specified defaultValue if the specified FieldPath does not
exist in the document. |
static boolean |
Documents.getBoolean(Document document,
FieldPath fieldPath,
boolean defaultValue)
Returns the value at the specified fieldPath as a
boolean or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static byte |
Documents.getByte(Document document,
FieldPath fieldPath,
byte defaultValue)
Returns the value at the specified fieldPath as a
byte or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static ODate |
Documents.getDate(Document document,
FieldPath fieldPath,
ODate defaultValue)
Returns the value at the specified fieldPath as a
ODate or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static BigDecimal |
Documents.getDecimal(Document document,
FieldPath fieldPath,
BigDecimal defaultValue)
Returns the value at the specified fieldPath as a
BigDecimal or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static double |
Documents.getDouble(Document document,
FieldPath fieldPath,
double defaultValue)
Returns the value at the specified fieldPath as a
double or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static float |
Documents.getFloat(Document document,
FieldPath fieldPath,
float defaultValue)
Returns the value at the specified fieldPath as a
float or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static int |
Documents.getInt(Document document,
FieldPath fieldPath,
int defaultValue)
Returns the value at the specified fieldPath as a
int or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OInterval |
Documents.getInterval(Document document,
FieldPath fieldPath,
OInterval defaultValue)
Returns the value at the specified fieldPath as a
OInterval or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static List<Object> |
Documents.getList(Document document,
FieldPath fieldPath,
List<Object> defaultValue)
Returns the value at the specified fieldPath as a
List or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static long |
Documents.getLong(Document document,
FieldPath fieldPath,
long defaultValue)
Returns the value at the specified fieldPath as a
long or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Map<String,Object> |
Documents.getMap(Document document,
FieldPath fieldPath,
Map<String,Object> defaultValue)
Returns the value at the specified fieldPath as a
Map or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static short |
Documents.getShort(Document document,
FieldPath fieldPath,
short defaultValue)
Returns the value at the specified fieldPath as a
short or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static String |
Documents.getString(Document document,
FieldPath fieldPath,
String defaultValue)
Returns the value at the specified fieldPath as a
String or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTime |
Documents.getTime(Document document,
FieldPath fieldPath,
OTime defaultValue)
Returns the value at the specified fieldPath as a
OTime or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static OTimestamp |
Documents.getTimestamp(Document document,
FieldPath fieldPath,
OTimestamp defaultValue)
Returns the value at the specified fieldPath as a
OTimestamp or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static Value |
Documents.getValue(Document document,
FieldPath fieldPath,
Value defaultValue)
Returns the value at the specified fieldPath as a
Value or the
specified defaultValue if the specified FieldPath does not
exist in the document. |
static String[] |
Fields.toFieldPathStringArray(FieldPath... fieldPaths) |
Constructor and Description |
---|
BaseFieldProjector(FieldPath... includedPaths) |
FieldProjector(FieldPath... includedPaths) |
Constructor and Description |
---|
BaseFieldProjector(Collection<FieldPath> includedPaths) |
FieldProjector(Collection<FieldPath> includedPaths) |
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.