Package | Description |
---|---|
org.ojai | |
org.ojai.base | |
org.ojai.beans | |
org.ojai.json | |
org.ojai.store | |
org.ojai.store.base | |
org.ojai.store.exceptions | |
org.ojai.util |
Modifier and Type | Method and Description |
---|---|
Document |
OjaiCodec.decodeDocument(T encodedDocument)
Decodes an instance of <T> into an OJAI
Document |
Document |
Document.delete(FieldPath fieldPath)
Deletes the value at the specified
FieldPath if it exists. |
Document |
Document.delete(String fieldPath)
Deletes the value at the specified
FieldPath if it exists. |
Document |
Document.empty()
Removes all of the entries from this document.
|
Document |
DocumentBuilder.getDocument() |
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.set(String fieldPath,
BigDecimal value)
Sets the value of the specified fieldPath in this Document to the
specified BigDecimal.
|
Document |
Document.set(String fieldPath,
boolean value)
Sets the value of the specified fieldPath in this Document to the
specified boolean value.
|
Document |
Document.set(String fieldPath,
byte value)
Sets the value of the specified fieldPath in this Document to the
specified byte value.
|
Document |
Document.set(String fieldPath,
byte[] value)
Sets the value of the specified fieldPath in this Document to the
specified binary value.
|
Document |
Document.set(String 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(String fieldPath,
ByteBuffer value)
Sets the value of the specified fieldPath in this Document to the
specified ByteBuffer.
|
Document |
Document.set(String fieldPath,
Document value)
Sets the value of the specified fieldPath in this Document to the
specified Document.
|
Document |
Document.set(String fieldPath,
double value)
Sets the value of the specified fieldPath in this Document to the
specified double value.
|
Document |
Document.set(String fieldPath,
float value)
Sets the value of the specified fieldPath in this Document to the
specified float value.
|
Document |
Document.set(String fieldPath,
int value)
Sets the value of the specified fieldPath in this Document to the
specified int value.
|
Document |
Document.set(String fieldPath,
List<? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Object List.
|
Document |
Document.set(String fieldPath,
long value)
Sets the value of the specified fieldPath in this Document to the
specified long value.
|
Document |
Document.set(String fieldPath,
Map<String,? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Map.
|
Document |
Document.set(String fieldPath,
ODate value)
Sets the value of the specified fieldPath in this Document to the
specified Date.
|
Document |
Document.set(String fieldPath,
OInterval value)
Sets the value of the specified fieldPath in this Document to the
specified Interval.
|
Document |
Document.set(String fieldPath,
OTime value)
Sets the value of the specified fieldPath in this Document to the
specified Time.
|
Document |
Document.set(String fieldPath,
OTimestamp value)
Sets the value of the specified fieldPath in this Document to the
specified Timestamp.
|
Document |
Document.set(String fieldPath,
short value)
Sets the value of the specified fieldPath in this Document to the
specified short value.
|
Document |
Document.set(String fieldPath,
String value)
Sets the value of the specified fieldPath in this Document to the
specified String.
|
Document |
Document.set(String 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.setArray(String fieldPath,
boolean[] values)
Sets the value of the specified fieldPath in this Document to the
specified boolean array.
|
Document |
Document.setArray(String fieldPath,
byte[] values)
Sets the value of the specified fieldPath in this Document to the
specified byte array.
|
Document |
Document.setArray(String fieldPath,
double[] values)
Sets the value of the specified fieldPath in this Document to the
specified double array.
|
Document |
Document.setArray(String fieldPath,
float[] values)
Sets the value of the specified fieldPath in this Document to the
specified float array.
|
Document |
Document.setArray(String fieldPath,
int[] values)
Sets the value of the specified fieldPath in this Document to the
specified int array.
|
Document |
Document.setArray(String fieldPath,
long[] values)
Sets the value of the specified fieldPath in this Document to the
specified long array.
|
Document |
Document.setArray(String fieldPath,
Object... values)
Sets the value of the specified fieldPath in this Document to the
specified Object array.
|
Document |
Document.setArray(String fieldPath,
short[] values)
Sets the value of the specified fieldPath in this Document to the
specified short array.
|
Document |
Document.setArray(String fieldPath,
String[] values)
Sets the value of the specified fieldPath in this Document to the
specified String array.
|
Document |
Document.setId(ByteBuffer _id)
Sets the "_id" field of this Document to the specified string.
|
Document |
Document.setId(String _id)
Sets the the "_id" field of this Document to the specified string.
|
Document |
Document.setId(Value _id)
Sets the the "_id" field of this Document to the specified Value.
|
Document |
Document.setNull(FieldPath fieldPath)
Sets the value of the specified fieldPath in this Document to
Value.Type.NULL . |
Document |
Document.setNull(String fieldPath)
Sets the value of the specified fieldPath in this Document to
Value.Type.NULL . |
Modifier and Type | Method and Description |
---|---|
Iterator<Document> |
DocumentStream.iterator()
Returns an iterator over a set of
Document . |
Modifier and Type | Method and Description |
---|---|
DocumentBuilder |
DocumentBuilder.add(Document value)
Appends the
Document to the current array. |
Query |
OjaiCodec.decodeQuery(T encodedQuery,
Document options)
Decodes an instance of <T> into an OJAI
Query |
boolean |
DocumentListener.documentArrived(Document document)
Called when a Document from the
DocumentStream is available for
consumption. |
T |
OjaiCodec.encodeDocument(Document document)
Encodes an OJAI
Document into an instance of <T> |
DocumentBuilder |
DocumentBuilder.put(String field,
Document value) |
Document |
Document.set(FieldPath fieldPath,
Document value)
Sets the value of the specified fieldPath in this Document to the
specified Document.
|
Document |
Document.set(String fieldPath,
Document value)
Sets the value of the specified fieldPath in this Document to the
specified Document.
|
Modifier and Type | Class and Description |
---|---|
class |
DocumentBase
A template abstract class that implements the
Document interface. |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentBase.delete(String fieldPath) |
Document |
QueryResultBase.getQueryPlan() |
Document |
DocumentBase.set(String fieldPath,
BigDecimal value) |
Document |
DocumentBase.set(String fieldPath,
boolean value) |
Document |
DocumentBase.set(String fieldPath,
byte value) |
Document |
DocumentBase.set(String fieldPath,
byte[] value) |
Document |
DocumentBase.set(String fieldPath,
byte[] value,
int off,
int len) |
Document |
DocumentBase.set(String fieldPath,
ByteBuffer value) |
Document |
DocumentBase.set(String fieldPath,
Document value) |
Document |
DocumentBase.set(String fieldPath,
double value) |
Document |
DocumentBase.set(String fieldPath,
float value) |
Document |
DocumentBase.set(String fieldPath,
int value) |
Document |
DocumentBase.set(String fieldPath,
List<? extends Object> value) |
Document |
DocumentBase.set(String fieldPath,
long value) |
Document |
DocumentBase.set(String fieldPath,
Map<String,? extends Object> value) |
Document |
DocumentBase.set(String fieldPath,
ODate value) |
Document |
DocumentBase.set(String fieldPath,
OInterval value) |
Document |
DocumentBase.set(String fieldPath,
OTime value) |
Document |
DocumentBase.set(String fieldPath,
OTimestamp value) |
Document |
DocumentBase.set(String fieldPath,
short value) |
Document |
DocumentBase.set(String fieldPath,
String value) |
Document |
DocumentBase.set(String fieldPath,
Value value) |
Document |
DocumentBase.setArray(String fieldPath,
byte[] values) |
Document |
DocumentBase.setArray(String fieldPath,
double[] values) |
Document |
DocumentBase.setArray(String fieldPath,
float[] values) |
Document |
DocumentBase.setArray(String fieldPath,
int[] values) |
Document |
DocumentBase.setArray(String fieldPath,
long[] values) |
Document |
DocumentBase.setArray(String fieldPath,
Object... value) |
Document |
DocumentBase.setArray(String fieldPath,
short[] values) |
Document |
DocumentBase.setArray(String fieldPath,
String[] values) |
Document |
DocumentBase.setNull(String fieldPath) |
Modifier and Type | Method and Description |
---|---|
Iterator<Document> |
DocumentStreamBase.iterator() |
protected abstract Iterator<Document> |
DocumentStreamBase.iteratorDerived()
This is the only method deriving class MUST implement.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentBase.set(String fieldPath,
Document value) |
Modifier and Type | Method and Description |
---|---|
static Document |
BeanCodec.decode(DocumentBuilder db,
Object bean) |
Modifier and Type | Method and Description |
---|---|
static Document |
Json.loadDocument(File file)
Loads a JSON file as OJAI Document.
|
static Document |
Json.loadDocument(String filePath)
Loads a JSON file as OJAI Document.
|
static Document |
Json.newDocument()
Returns a new, empty Document.
|
static <T> Document |
Json.newDocument(Map<String,T> map)
Returns a new instance of a Document built from the specified Map.
|
static Document |
Json.newDocument(Object bean)
Returns a new instance of a Document built from the specified Java bean.
|
static Document |
Json.newDocument(String jsonString)
Returns a Document built from the specified JSON string.
|
Modifier and Type | Method and Description |
---|---|
static String |
Json.toJsonString(Document d) |
static String |
Json.toJsonString(Document d,
JsonOptions options) |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentStore.findById(String _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(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)
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(String _id,
String... 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)
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. |
Document |
QueryResult.getQueryPlan()
Returns a query plan that was used for this QueryResults
|
Document |
Driver.newDocument()
Creates and returns a new, empty instance of an OJAI Document.
|
Document |
Connection.newDocument()
Creates and returns a new, empty instance of an OJAI Document.
|
Document |
Driver.newDocument(Map<String,Object> map)
Returns a new instance of Document constructed from the specified Map.
|
Document |
Connection.newDocument(Map<String,Object> map)
Returns a new instance of Document constructed from the specified Map.
|
Document |
Driver.newDocument(Object bean)
Returns a new instance of Document built from the specified Java bean.
|
Document |
Connection.newDocument(Object bean)
Returns a new instance of Document built from the specified Java bean.
|
Document |
Driver.newDocument(String documentJson)
Returns a new instance of OJAI Document parsed from the specified JSON string.
|
Document |
Connection.newDocument(String jsonString)
Returns a new instance of OJAI Document parsed from the specified JSON string.
|
Modifier and Type | Method and Description |
---|---|
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) |
Connection |
Driver.connect(String url,
Document options)
Establishes and returns a Connection to an OJAI data source.
|
default DocumentStore |
Connection.createStore(String storeName,
Document options)
Creates an OJAI DocumentStore specified by the given name or path and returns a handle.
|
void |
DocumentStore.delete(Document doc) |
void |
DocumentStore.delete(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.delete(Document doc,
String fieldAsKey) |
static Connection |
DriverManager.getConnection(String url,
Document options)
Establishes and returns a Connection to an OJAI data source.
|
default DocumentStore |
Connection.getStore(String storeName,
Document options)
Returns a handle to an OJAI DocumentStore specified by the given name
or path.
|
void |
DocumentStore.insert(Document doc) |
void |
DocumentStore.insert(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.insert(Document doc,
String fieldAsKey) |
void |
DocumentStore.insert(String _id,
Document doc)
Inserts a document with the given id.
|
void |
DocumentStore.insert(Value _id,
Document doc) |
void |
DocumentStore.insertOrReplace(Document doc)
Inserts or replaces a new document in this DocumentStore.
|
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(Document doc,
String fieldAsKey)
Inserts or replaces a new document in this DocumentStore with the value of
the specified Field as the
_id . |
void |
DocumentStore.insertOrReplace(String _id,
Document r)
Inserts or replaces a new document in this DocumentStore with the given _id.
|
void |
DocumentStore.insertOrReplace(Value _id,
Document doc)
Inserts or replaces a new document in this DocumentStore with the given _id.
|
DocumentMutation |
DocumentMutation.merge(FieldPath path,
Document doc)
Merges the existing MAP at the given FieldPath with the specified Document.
|
DocumentMutation |
DocumentMutation.merge(String path,
Document doc)
Merges the existing MAP at the given FieldPath with the specified Document.
|
void |
OpListener.onSuccess(Document document)
Called when a Document from the async operation is available.
|
void |
DocumentStore.replace(Document doc) |
void |
DocumentStore.replace(Document doc,
FieldPath fieldAsKey) |
void |
DocumentStore.replace(Document doc,
String fieldAsKey) |
void |
DocumentStore.replace(String _id,
Document doc)
Replaces a document in the DocumentStore.
|
void |
DocumentStore.replace(Value _id,
Document doc) |
DocumentMutation |
DocumentMutation.set(FieldPath path,
Document doc)
Sets the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.set(String path,
Document doc)
Sets the field at the given FieldPath to the specified
Document . |
Query |
Query.setOptions(Document options)
Sets multiple query options for this Query.
|
DocumentMutation |
DocumentMutation.setOrReplace(FieldPath path,
Document doc)
Sets or replaces the field at the given FieldPath to the specified
Document . |
DocumentMutation |
DocumentMutation.setOrReplace(String path,
Document doc)
Sets or replaces the field at the given FieldPath to the specified
Document . |
Modifier and Type | Method and Description |
---|---|
Document |
ForwardingStore.findById(String id) |
Document |
ForwardingStore.findById(String id,
FieldPath... 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(String id,
String... paths) |
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
ForwardingStore.checkAndReplace(String id,
QueryCondition condition,
Document r) |
boolean |
ForwardingStore.checkAndReplace(Value _id,
QueryCondition condition,
Document doc) |
void |
ForwardingStore.delete(Document r) |
void |
ForwardingStore.delete(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.delete(Document r,
String fieldAsKey) |
void |
ForwardingStore.insert(Document r) |
void |
ForwardingStore.insert(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.insert(Document r,
String fieldAsKey) |
void |
ForwardingStore.insert(String id,
Document r) |
void |
ForwardingStore.insert(Value _id,
Document doc) |
void |
ForwardingStore.insertOrReplace(Document r) |
void |
ForwardingStore.insertOrReplace(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.insertOrReplace(Document r,
String fieldAsKey) |
void |
ForwardingStore.insertOrReplace(String id,
Document r) |
void |
ForwardingStore.insertOrReplace(Value _id,
Document doc) |
void |
ForwardingStore.replace(Document r) |
void |
ForwardingStore.replace(Document r,
FieldPath fieldAsKey) |
void |
ForwardingStore.replace(Document r,
String fieldAsKey) |
void |
ForwardingStore.replace(String id,
Document r) |
void |
ForwardingStore.replace(Value _id,
Document doc) |
Modifier and Type | Method and Description |
---|---|
Document |
FailedOp.getDocument() |
Constructor and Description |
---|
FailedOp(Document doc,
Exception e) |
Modifier and Type | Method and Description |
---|---|
Document |
EmptyQueryResult.getQueryPlan() |
static Document |
Documents.readOnly(Document src)
Creates and return a read-only view of the specified OJAI document.
Any attempt to modify the returned document will result in
ReadOnlyObjectException being thrown. |
Modifier and Type | Method and Description |
---|---|
protected Iterator<Document> |
EmptyDocumentStream.iteratorDerived() |
Modifier and Type | Method and Description |
---|---|
static boolean |
Documents.equals(Document d1,
Document d2)
Compares two documents for equality.
|
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 ByteBuffer |
Documents.getBinary(Document document,
String 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 boolean |
Documents.getBoolean(Document document,
String 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 byte |
Documents.getByte(Document document,
String 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 ODate |
Documents.getDate(Document document,
String 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 BigDecimal |
Documents.getDecimal(Document document,
String 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 double |
Documents.getDouble(Document document,
String 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 float |
Documents.getFloat(Document document,
String 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 int |
Documents.getInt(Document document,
String 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 OInterval |
Documents.getInterval(Document document,
String 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 List<Object> |
Documents.getList(Document document,
String 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 long |
Documents.getLong(Document document,
String 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 Map<String,Object> |
Documents.getMap(Document document,
String 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 short |
Documents.getShort(Document document,
String 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 String |
Documents.getString(Document document,
String 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 OTime |
Documents.getTime(Document document,
String 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 OTimestamp |
Documents.getTimestamp(Document document,
String 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 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 Document |
Documents.readOnly(Document src)
Creates and return a read-only view of the specified OJAI document.
Any attempt to modify the returned document will result in
ReadOnlyObjectException being thrown. |
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.