| Constructor and Description |
|---|
DocumentBase() |
| Modifier and Type | Method and Description |
|---|---|
DocumentReader |
asReader(String fieldPath) |
Document |
delete(String fieldPath)
Deletes the value at the specified
FieldPath if it exists. |
ByteBuffer |
getBinary(String 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 |
getBoolean(String fieldPath)
Returns the value at the specified fieldPath as a
boolean. |
Boolean |
getBooleanObj(String 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 |
getByte(String fieldPath)
Returns the value at the specified fieldPath as a
byte. |
Byte |
getByteObj(String 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 |
getDate(String 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 |
getDecimal(String 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 |
getDouble(String fieldPath)
Returns the value at the specified fieldPath as a
double. |
Double |
getDoubleObj(String 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 |
getFloat(String fieldPath)
Returns the value at the specified fieldPath as a
float. |
Float |
getFloatObj(String 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 |
getInt(String fieldPath)
Returns the value at the specified fieldPath as an
int. |
OInterval |
getInterval(String 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 |
getIntObj(String 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> |
getList(String 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 |
getLong(String fieldPath)
Returns the value at the specified fieldPath as a
long. |
Long |
getLongObj(String 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> |
getMap(String 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 |
getShort(String fieldPath)
Returns the value at the specified fieldPath as a
short. |
Short |
getShortObj(String 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 |
getString(String 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 |
getTime(String 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 |
getTimestamp(String 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 |
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. |
Document |
set(String fieldPath,
BigDecimal value)
Sets the value of the specified fieldPath in this Document to the
specified BigDecimal.
|
Document |
set(String fieldPath,
boolean value)
Sets the value of the specified fieldPath in this Document to the
specified boolean value.
|
Document |
set(String fieldPath,
byte value)
Sets the value of the specified fieldPath in this Document to the
specified byte value.
|
Document |
set(String fieldPath,
byte[] value)
Sets the value of the specified fieldPath in this Document to the
specified binary value.
|
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 |
set(String fieldPath,
ByteBuffer value)
Sets the value of the specified fieldPath in this Document to the
specified ByteBuffer.
|
Document |
set(String fieldPath,
Document value)
Sets the value of the specified fieldPath in this Document to the
specified Document.
|
Document |
set(String fieldPath,
double value)
Sets the value of the specified fieldPath in this Document to the
specified double value.
|
Document |
set(String fieldPath,
float value)
Sets the value of the specified fieldPath in this Document to the
specified float value.
|
Document |
set(String fieldPath,
int value)
Sets the value of the specified fieldPath in this Document to the
specified int value.
|
Document |
set(String fieldPath,
List<? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Object List.
|
Document |
set(String fieldPath,
long value)
Sets the value of the specified fieldPath in this Document to the
specified long value.
|
Document |
set(String fieldPath,
Map<String,? extends Object> value)
Sets the value of the specified fieldPath in this Document to the
specified Map.
|
Document |
set(String fieldPath,
ODate value)
Sets the value of the specified fieldPath in this Document to the
specified Date.
|
Document |
set(String fieldPath,
OInterval value)
Sets the value of the specified fieldPath in this Document to the
specified Interval.
|
Document |
set(String fieldPath,
OTime value)
Sets the value of the specified fieldPath in this Document to the
specified Time.
|
Document |
set(String fieldPath,
OTimestamp value)
Sets the value of the specified fieldPath in this Document to the
specified Timestamp.
|
Document |
set(String fieldPath,
short value)
Sets the value of the specified fieldPath in this Document to the
specified short value.
|
Document |
set(String fieldPath,
String value)
Sets the value of the specified fieldPath in this Document to the
specified String.
|
Document |
set(String fieldPath,
Value value)
Sets the value of the specified fieldPath in this Document to the
specified Value.
|
Document |
setArray(String fieldPath,
byte[] values)
Sets the value of the specified fieldPath in this Document to the
specified byte array.
|
Document |
setArray(String fieldPath,
double[] values)
Sets the value of the specified fieldPath in this Document to the
specified double array.
|
Document |
setArray(String fieldPath,
float[] values)
Sets the value of the specified fieldPath in this Document to the
specified float array.
|
Document |
setArray(String fieldPath,
int[] values)
Sets the value of the specified fieldPath in this Document to the
specified int array.
|
Document |
setArray(String fieldPath,
long[] values)
Sets the value of the specified fieldPath in this Document to the
specified long array.
|
Document |
setArray(String fieldPath,
Object... value)
Sets the value of the specified fieldPath in this Document to the
specified Object array.
|
Document |
setArray(String fieldPath,
short[] values)
Sets the value of the specified fieldPath in this Document to the
specified short array.
|
Document |
setArray(String fieldPath,
String[] values)
Sets the value of the specified fieldPath in this Document to the
specified String array.
|
Document |
setNull(String fieldPath)
Sets the value of the specified fieldPath in this Document to
Value.Type.NULL. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasMap, asReader, asReader, delete, empty, getBinary, getBoolean, getBooleanObj, getByte, getByteObj, getDate, getDecimal, getDouble, getDoubleObj, getFloat, getFloatObj, getId, getIdBinary, getIdString, getInt, getInterval, getIntObj, getList, getLong, getLongObj, getMap, getShort, getShortObj, getString, getTime, getTimestamp, getValue, isReadOnly, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setArray, setId, setId, setId, setNull, size, toJavaBean, toStringforEach, iterator, spliteratorasJsonString, asJsonStringpublic Document set(String fieldPath, String value)
Documentpublic Document set(String fieldPath, boolean value)
Documentpublic Document set(String fieldPath, byte value)
Documentpublic Document set(String fieldPath, short value)
Documentpublic Document set(String fieldPath, int value)
Documentpublic Document set(String fieldPath, long value)
Documentpublic Document set(String fieldPath, float value)
Documentpublic Document set(String fieldPath, double value)
Documentpublic Document set(String fieldPath, OTime value)
Documentpublic Document set(String fieldPath, ODate value)
Documentpublic Document set(String fieldPath, OTimestamp value)
Documentpublic Document set(String fieldPath, BigDecimal value)
Documentpublic Document set(String fieldPath, byte[] value)
Documentpublic Document set(String fieldPath, byte[] value, int off, int len)
Documentpublic Document set(String fieldPath, ByteBuffer value)
Documentpublic Document set(String fieldPath, OInterval value)
Documentpublic Document set(String fieldPath, Map<String,? extends Object> value)
Documentpublic Document set(String fieldPath, Document value)
Documentpublic Document set(String fieldPath, Value value)
Documentpublic Document setArray(String fieldPath, Object... value)
Documentpublic Document set(String fieldPath, List<? extends Object> value)
Documentpublic Document delete(String fieldPath)
DocumentFieldPath if it exists.public String getString(String fieldPath)
DocumentString
object or null if the specified FieldPath does
not exist in the document.public boolean getBoolean(String fieldPath)
Documentboolean.getBoolean in interface Documentpublic Boolean getBooleanObj(String fieldPath)
DocumentBoolean
object or null if the specified FieldPath does
not exist in the document.getBooleanObj in interface Documentpublic byte getByte(String fieldPath)
Documentbyte.public Byte getByteObj(String fieldPath)
DocumentByte
object or null if the specified FieldPath does
not exist in the document.getByteObj in interface Documentpublic short getShort(String fieldPath)
Documentshort.public Short getShortObj(String fieldPath)
DocumentShort
object or null if the specified FieldPath does
not exist in the document.getShortObj in interface Documentpublic int getInt(String fieldPath)
Documentint.public Integer getIntObj(String fieldPath)
DocumentInteger
object or null if the specified FieldPath does
not exist in the document.public long getLong(String fieldPath)
Documentlong.public Long getLongObj(String fieldPath)
DocumentLong
object or null if the specified FieldPath does
not exist in the document.getLongObj in interface Documentpublic float getFloat(String fieldPath)
Documentfloat.public Float getFloatObj(String fieldPath)
DocumentFloat
object or null if the specified FieldPath does
not exist in the document.getFloatObj in interface Documentpublic double getDouble(String fieldPath)
Documentdouble.public Double getDoubleObj(String fieldPath)
DocumentDouble
object or null if the specified FieldPath does
not exist in the document.getDoubleObj in interface Documentpublic OTime getTime(String fieldPath)
DocumentOTime
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.public ODate getDate(String fieldPath)
DocumentODate
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.public OTimestamp getTimestamp(String fieldPath)
DocumentOTimestamp
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.getTimestamp in interface Documentpublic BigDecimal getDecimal(String fieldPath)
DocumentBigDecimal
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.getDecimal in interface Documentpublic ByteBuffer getBinary(String fieldPath)
DocumentByteBuffer
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.public OInterval getInterval(String fieldPath)
DocumentOInterval
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.getInterval in interface Documentpublic Value getValue(String fieldPath)
DocumentValue
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.public DocumentReader asReader(String fieldPath)
asReader in interface DocumentDocumentReader over the node specified by the
fieldPath or null if the node does not existpublic Document setArray(String fieldPath, byte[] values)
Documentpublic Document setArray(String fieldPath, short[] values)
Documentpublic Document setArray(String fieldPath, int[] values)
Documentpublic Document setArray(String fieldPath, long[] values)
Documentpublic Document setArray(String fieldPath, float[] values)
Documentpublic Document setArray(String fieldPath, double[] values)
Documentpublic Document setArray(String fieldPath, String[] values)
Documentpublic Document setNull(String fieldPath)
DocumentValue.Type.NULL.public Map<String,Object> getMap(String fieldPath)
DocumentMap
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.public List<Object> getList(String fieldPath)
DocumentList
object or null if the specified FieldPath does not
exist in the document. Modifying the returned object does not alter the
content of the document.Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.