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, wait
asMap, 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, toString
forEach, iterator, spliterator
asJsonString, asJsonString
public Document set(String fieldPath, String value)
Document
public Document set(String fieldPath, boolean value)
Document
public Document set(String fieldPath, byte value)
Document
public Document set(String fieldPath, short value)
Document
public Document set(String fieldPath, int value)
Document
public Document set(String fieldPath, long value)
Document
public Document set(String fieldPath, float value)
Document
public Document set(String fieldPath, double value)
Document
public Document set(String fieldPath, OTime value)
Document
public Document set(String fieldPath, ODate value)
Document
public Document set(String fieldPath, OTimestamp value)
Document
public Document set(String fieldPath, BigDecimal value)
Document
public Document set(String fieldPath, byte[] value)
Document
public Document set(String fieldPath, byte[] value, int off, int len)
Document
public Document set(String fieldPath, ByteBuffer value)
Document
public Document set(String fieldPath, OInterval value)
Document
public Document set(String fieldPath, Map<String,? extends Object> value)
Document
public Document set(String fieldPath, Document value)
Document
public Document set(String fieldPath, Value value)
Document
public Document setArray(String fieldPath, Object... value)
Document
public Document set(String fieldPath, List<? extends Object> value)
Document
public Document delete(String fieldPath)
Document
FieldPath
if it exists.public String getString(String fieldPath)
Document
String
object or null
if the specified FieldPath
does
not exist in the document.public boolean getBoolean(String fieldPath)
Document
boolean
.getBoolean
in interface Document
public Boolean getBooleanObj(String fieldPath)
Document
Boolean
object or null
if the specified FieldPath
does
not exist in the document.getBooleanObj
in interface Document
public byte getByte(String fieldPath)
Document
byte
.public Byte getByteObj(String fieldPath)
Document
Byte
object or null
if the specified FieldPath
does
not exist in the document.getByteObj
in interface Document
public short getShort(String fieldPath)
Document
short
.public Short getShortObj(String fieldPath)
Document
Short
object or null
if the specified FieldPath
does
not exist in the document.getShortObj
in interface Document
public int getInt(String fieldPath)
Document
int
.public Integer getIntObj(String fieldPath)
Document
Integer
object or null
if the specified FieldPath
does
not exist in the document.public long getLong(String fieldPath)
Document
long
.public Long getLongObj(String fieldPath)
Document
Long
object or null
if the specified FieldPath
does
not exist in the document.getLongObj
in interface Document
public float getFloat(String fieldPath)
Document
float
.public Float getFloatObj(String fieldPath)
Document
Float
object or null
if the specified FieldPath
does
not exist in the document.getFloatObj
in interface Document
public double getDouble(String fieldPath)
Document
double
.public Double getDoubleObj(String fieldPath)
Document
Double
object or null
if the specified FieldPath
does
not exist in the document.getDoubleObj
in interface Document
public OTime getTime(String fieldPath)
Document
OTime
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)
Document
ODate
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)
Document
OTimestamp
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 Document
public BigDecimal getDecimal(String fieldPath)
Document
BigDecimal
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 Document
public ByteBuffer getBinary(String fieldPath)
Document
ByteBuffer
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)
Document
OInterval
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 Document
public Value getValue(String fieldPath)
Document
Value
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 Document
DocumentReader
over the node specified by the
fieldPath or null
if the node does not existpublic Document setArray(String fieldPath, byte[] values)
Document
public Document setArray(String fieldPath, short[] values)
Document
public Document setArray(String fieldPath, int[] values)
Document
public Document setArray(String fieldPath, long[] values)
Document
public Document setArray(String fieldPath, float[] values)
Document
public Document setArray(String fieldPath, double[] values)
Document
public Document setArray(String fieldPath, String[] values)
Document
public Document setNull(String fieldPath)
Document
Value.Type.NULL
.public Map<String,Object> getMap(String fieldPath)
Document
Map
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)
Document
List
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.