Package | Description |
---|---|
org.ojai | |
org.ojai.base | |
org.ojai.json | |
org.ojai.store | |
org.ojai.store.base | |
org.ojai.store.cdc | |
org.ojai.util |
Modifier and Type | Method and Description |
---|---|
Value |
Document.getId() |
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. |
Value |
Document.getValue(String fieldPath)
Returns the value at the specified fieldPath as a
Value
object or null if the specified FieldPath does not
exist in the document. |
Modifier and Type | Method and Description |
---|---|
DocumentBuilder |
DocumentBuilder.add(Value value)
Appends the
Value to the current array. |
DocumentBuilder |
DocumentBuilder.put(String field,
Value value) |
Document |
Document.set(FieldPath fieldPath,
Value value)
Sets the value of the specified fieldPath in this Document to the
specified Value.
|
Document |
Document.set(String fieldPath,
Value value)
Sets the value of the specified fieldPath in this Document to the
specified Value.
|
Document |
Document.setId(Value _id)
Sets the the "_id" field of this Document to the specified Value.
|
Modifier and Type | Method and Description |
---|---|
Value |
DocumentBase.getValue(String fieldPath) |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentBase.set(String fieldPath,
Value value) |
Modifier and Type | Method and Description |
---|---|
Value |
Events.EventDescriptor.getValue() |
Modifier and Type | Method and Description |
---|---|
Events.EventDescriptor |
Events.EventDescriptor.setValue(Value value) |
Modifier and Type | Method and Description |
---|---|
Value |
MutationOp.getOpValue() |
Value |
ValueBuilder.newNullValue()
Returns a new
Value of Value.Type.NULL . |
Value |
ValueBuilder.newValue(BigDecimal value)
|
Value |
ValueBuilder.newValue(boolean value)
Returns a new
Value of Value.Type.BOOLEAN from the specified boolean value. |
Value |
ValueBuilder.newValue(byte value)
Returns a new
Value of Value.Type.BYTE from the specified byte value. |
Value |
ValueBuilder.newValue(byte[] value)
Returns a new
Value of Value.Type.BINARY from the specified byte array. |
Value |
ValueBuilder.newValue(ByteBuffer value)
|
Value |
ValueBuilder.newValue(double value)
Returns a new
Value of Value.Type.DOUBLE from the specified double value. |
Value |
ValueBuilder.newValue(float value)
Returns a new
Value of Value.Type.FLOAT from the specified float value. |
Value |
ValueBuilder.newValue(int value)
Returns a new
Value of Value.Type.INT from the specified integer value. |
Value |
ValueBuilder.newValue(List<? extends Object> list)
|
Value |
ValueBuilder.newValue(long value)
Returns a new
Value of Value.Type.LONG from the specified long value. |
Value |
ValueBuilder.newValue(Map<String,? extends Object> map)
|
Value |
ValueBuilder.newValue(ODate value)
|
Value |
ValueBuilder.newValue(OInterval value)
|
Value |
ValueBuilder.newValue(OTime value)
|
Value |
ValueBuilder.newValue(OTimestamp value)
|
Value |
ValueBuilder.newValue(short value)
Returns a new
Value of Value.Type.SHORT from the specified short value. |
Value |
ValueBuilder.newValue(String value)
Returns a new
Value of Value.Type.STRING from the specified String. |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentStore.checkAndDelete(Value _id,
QueryCondition condition) |
boolean |
DocumentStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation)
|
boolean |
DocumentStore.checkAndReplace(Value _id,
QueryCondition condition,
Document doc) |
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.delete(Value _id) |
Document |
DocumentStore.findById(Value _id)
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,
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)
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.
|
Document |
DocumentStore.findById(Value _id,
String... fieldPaths)
Returns the Document with the given `_id` or
null if the document with that `_id`
doesn't exist in this DocumentStore. |
void |
DocumentStore.increment(Value _id,
String field,
BigDecimal inc) |
void |
DocumentStore.increment(Value _id,
String field,
byte inc) |
void |
DocumentStore.increment(Value _id,
String field,
double inc) |
void |
DocumentStore.increment(Value _id,
String field,
float inc) |
void |
DocumentStore.increment(Value _id,
String field,
int inc) |
void |
DocumentStore.increment(Value _id,
String field,
long inc) |
void |
DocumentStore.increment(Value _id,
String field,
short inc) |
void |
DocumentStore.insert(Value _id,
Document doc) |
void |
DocumentStore.insertOrReplace(Value _id,
Document doc)
Inserts or replaces a new document in this DocumentStore with the given _id.
|
void |
DocumentStore.replace(Value _id,
Document doc) |
DocumentMutation |
DocumentMutation.set(FieldPath path,
Value value)
Sets the field at the given FieldPath to the specified value.
|
DocumentMutation |
DocumentMutation.set(String path,
Value value)
Sets the field at the given FieldPath to the specified value.
|
void |
MutationOp.setOpValue(Value opValue) |
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,
Value value)
Sets or replaces the field at the given FieldPath to the new value.
|
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.checkAndDelete(Value _id,
QueryCondition condition) |
boolean |
ForwardingStore.checkAndMutate(Value _id,
QueryCondition condition,
DocumentMutation mutation) |
boolean |
ForwardingStore.checkAndReplace(Value _id,
QueryCondition condition,
Document doc) |
void |
ForwardingStore.delete(Value _id) |
Document |
ForwardingStore.findById(Value id) |
Document |
ForwardingStore.findById(Value _id,
FieldPath... fieldPaths) |
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) |
Document |
ForwardingStore.findById(Value _id,
String... fieldPaths) |
void |
ForwardingStore.increment(Value _id,
String field,
BigDecimal inc) |
void |
ForwardingStore.increment(Value _id,
String field,
byte inc) |
void |
ForwardingStore.increment(Value _id,
String field,
double inc) |
void |
ForwardingStore.increment(Value _id,
String field,
float inc) |
void |
ForwardingStore.increment(Value _id,
String field,
int inc) |
void |
ForwardingStore.increment(Value _id,
String field,
long inc) |
void |
ForwardingStore.increment(Value _id,
String field,
short inc) |
void |
ForwardingStore.insert(Value _id,
Document doc) |
void |
ForwardingStore.insertOrReplace(Value _id,
Document doc) |
void |
ForwardingStore.replace(Value _id,
Document doc) |
void |
ForwardingStore.update(Value _id,
DocumentMutation mutation) |
Modifier and Type | Method and Description |
---|---|
Value |
ChangeDataRecord.getId()
Returns the "_id" field of the
Document associated with this
ChangeData notification. |
Value |
ChangeNode.getValue()
Returns The OJAI
Value of the current node. |
Modifier and Type | Method and Description |
---|---|
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 Value |
Documents.getValue(Document document,
String 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. |
Modifier and Type | Method and Description |
---|---|
static boolean |
Values.asBoolean(Value value) |
static byte |
Values.asByte(Value value) |
static BigDecimal |
Values.asDecimal(Value value) |
static double |
Values.asDouble(Value value) |
static float |
Values.asFloat(Value value) |
static int |
Values.asInt(Value value) |
static String |
Values.asJsonString(Value value)
Converts a
Value to its extended JSON representation.The 7 intrinsic types, null, boolean, string, long,
double, array, and map , are represented in regular JSON. |
static long |
Values.asLong(Value value) |
static Number |
Values.asNumber(Value value) |
static short |
Values.asShort(Value value) |
static String |
Values.asString(Value value) |
static String |
Types.getTypeTag(Value value) |
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 Value |
Documents.getValue(Document document,
String 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 boolean |
Types.isExtendedType(Value value) |
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.