Package | Description |
---|---|
org.ojai | |
org.ojai.store | |
org.ojai.store.base |
Modifier and Type | Method and Description |
---|---|
DocumentMutation |
OjaiCodec.decodeMutation(T encodedMutation)
Decodes an instance of <T> into an OJAI
DocumentMutation |
Modifier and Type | Method and Description |
---|---|
T |
OjaiCodec.encodeMutation(DocumentMutation mutation)
Encodes an OJAI
DocumentMutation into an instance of <T> |
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.append(String path,
byte[] value)
Appends the given byte array to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(String path,
byte[] value,
int offset,
int len)
Appends the given byte array to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(String path,
ByteBuffer value)
Appends the given ByteBuffer to an existing BINARY value at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(String path,
List<? extends Object> list)
Appends elements of the given list to an existing ARRAY at the given FieldPath.
|
DocumentMutation |
DocumentMutation.append(String 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) |
DocumentMutation |
DocumentMutation.decrement(String path,
BigDecimal dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
byte dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
double dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
float dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
int dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
long dec) |
DocumentMutation |
DocumentMutation.decrement(String path,
short dec) |
DocumentMutation |
DocumentMutation.delete(FieldPath path)
Deletes the field at the given path.
|
DocumentMutation |
DocumentMutation.delete(String path)
Deletes the field at the given path.
|
DocumentMutation |
DocumentMutation.empty()
Empties this DocumentMutation object.
|
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.
|
DocumentMutation |
DocumentMutation.increment(String path,
BigDecimal inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(String path,
byte inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(String path,
double inc) |
DocumentMutation |
DocumentMutation.increment(String path,
float inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(String path,
int inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(String path,
long inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
DocumentMutation |
DocumentMutation.increment(String path,
short inc)
Atomically increment the existing value at given the FieldPath by the given value.
|
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.
|
DocumentMutation |
DocumentMutation.merge(String path,
Document doc)
Merges the existing MAP at the given FieldPath with the specified Document.
|
DocumentMutation |
DocumentMutation.merge(String path,
Map<String,Object> map)
Merges the existing MAP at the given FieldPath with the specified Map.
|
DocumentMutation |
Driver.newMutation()
Creates and returns a new DocumentMutation object.
|
DocumentMutation |
Connection.newMutation()
Creates and returns a new DocumentMutation object.
|
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.
|
DocumentMutation |
DocumentMutation.set(String path,
BigDecimal bd)
Sets the field at the given FieldPath to the specified
BigDecimal value. |
DocumentMutation |
DocumentMutation.set(String path,
boolean b)
Sets the field at the given FieldPath to the specified
boolean value. |
DocumentMutation |
DocumentMutation.set(String path,
byte b)
Sets the field at the given FieldPath to the specified
byte value. |
DocumentMutation |
DocumentMutation.set(String path,
ByteBuffer bb)
Sets the field at the given FieldPath to the specified
ByteBuffer . |
DocumentMutation |
DocumentMutation.set(String path,
Document doc)
Sets the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.set(String path,
double d)
Sets the field at the given FieldPath to the specified
double value. |
DocumentMutation |
DocumentMutation.set(String path,
float f)
Sets the field at the given FieldPath to the specified
float value. |
DocumentMutation |
DocumentMutation.set(String path,
int i)
Sets the field at the given FieldPath to the specified
int value. |
DocumentMutation |
DocumentMutation.set(String path,
List<? extends Object> list)
Sets the field at the given FieldPath to the specified
List . |
DocumentMutation |
DocumentMutation.set(String path,
long l)
Sets the field at the given FieldPath to the specified
long value. |
DocumentMutation |
DocumentMutation.set(String path,
Map<String,? extends Object> map)
Sets the field at the given FieldPath to the specified
Map . |
DocumentMutation |
DocumentMutation.set(String path,
ODate d)
Sets the field at the given FieldPath to the specified
Date value. |
DocumentMutation |
DocumentMutation.set(String path,
OInterval intv)
Sets the field at the given FieldPath to the specified
Interval value. |
DocumentMutation |
DocumentMutation.set(String path,
OTime t)
Sets the field at the given FieldPath to the specified
Time value. |
DocumentMutation |
DocumentMutation.set(String path,
OTimestamp ts)
Sets the field at the given FieldPath to the specified
Timestamp value. |
DocumentMutation |
DocumentMutation.set(String path,
short s)
Sets the field at the given FieldPath to the specified
short value. |
DocumentMutation |
DocumentMutation.set(String path,
String value)
Sets the field at the given FieldPath to the specified
String value. |
DocumentMutation |
DocumentMutation.set(String path,
Value value)
Sets the field at the given FieldPath to the specified value.
|
DocumentMutation |
DocumentMutation.setNull(FieldPath path)
Sets the field at the given FieldPath to
NULL Value. |
DocumentMutation |
DocumentMutation.setNull(String 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.setOrReplace(String path,
BigDecimal bd)
Sets or replaces the field at the given FieldPath to the specified
BigDecimal value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
boolean b)
Sets or replaces the field at the given FieldPath to the specified
boolean value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
byte b)
Sets or replaces the field at the given FieldPath to the specified
byte value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
ByteBuffer bb)
Sets or replaces the field at the given FieldPath to the specified
ByteBuffer . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
Document doc)
Sets or replaces the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
double d)
Sets or replaces the field at the given FieldPath to the specified
double value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
float f)
Sets or replaces the field at the given FieldPath to the specified
float value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
int i)
Sets or replaces the field at the given FieldPath to the specified
int value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
List<? extends Object> list)
Sets or replaces the field at the given FieldPath to the specified
List . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
long l)
Sets or replaces the field at the given FieldPath to the specified
long value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
Map<String,? extends Object> map)
Sets or replaces the field at the given FieldPath to the specified
Map . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
ODate d)
Sets or replaces the field at the given FieldPath to the specified
Date value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
OInterval intv)
Sets or replaces the field at the given FieldPath to the specified
Interval . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
OTime t)
Sets or replaces the field at the given FieldPath to the specified
Time value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
OTimestamp ts)
Sets or replaces the field at the given FieldPath to the specified
Timestamp value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
short s)
Sets or replaces the field at the given FieldPath to the specified
short value. |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
String string)
Sets or replaces the field at the given FieldPath to the specified
String value. |
DocumentMutation |
DocumentMutation.setOrReplace(String 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. |
DocumentMutation |
DocumentMutation.setOrReplaceNull(String path)
Sets or replaces the field at the given FieldPath to
NULL Value. |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentStore.checkAndMutate(String _id,
QueryCondition condition,
DocumentMutation mutation)
|
boolean |
DocumentStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation)
|
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.
|
void |
DocumentStore.update(String _id,
DocumentMutation mutation)
Applies a mutation on the document identified by the document id.
All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer. |
void |
DocumentStore.update(Value _id,
DocumentMutation mutation)
Applies a mutation on the document identified by the document id.
All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer. |
Modifier and Type | Method and Description |
---|---|
boolean |
ForwardingStore.checkAndMutate(String id,
QueryCondition condition,
DocumentMutation m) |
boolean |
ForwardingStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation) |
void |
ForwardingStore.update(String id,
DocumentMutation m) |
void |
ForwardingStore.update(Value _id,
DocumentMutation mutation) |
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.