ArrayIndexTypeMask, ArrayIndexTypeShift, IsArrayElementMask, IsArrayElementShift, IsRootMask, IsRootShift, opType| Constructor and Description |
|---|
DBDocumentImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
asJsonString() |
String |
asJsonString(org.ojai.json.JsonOptions options) |
org.ojai.DocumentReader |
asReader() |
org.ojai.DocumentReader |
asReader(org.ojai.FieldPath fieldPath) |
org.ojai.DocumentReader |
asReader(String fieldPath) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
DBDocument |
delete(org.ojai.FieldPath path) |
DBDocument |
delete(String field) |
void |
deserializeFromRowCol(ByteBuffer input,
SerializationContext ctx) |
DBDocumentImpl |
empty() |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object doc2) |
Object |
get(Object key) |
ByteBuffer |
getBinary(org.ojai.FieldPath field) |
ByteBuffer |
getBinary(String field) |
boolean |
getBoolean(org.ojai.FieldPath field) |
boolean |
getBoolean(String field) |
Boolean |
getBooleanObj(org.ojai.FieldPath field) |
Boolean |
getBooleanObj(String field) |
byte |
getByte(org.ojai.FieldPath field) |
byte |
getByte(String field) |
Byte |
getByteObj(org.ojai.FieldPath field) |
Byte |
getByteObj(String field) |
ControlInfo |
getControlInfo(org.ojai.FieldPath fieldPath) |
ControlInfo |
getControlInfo(String fieldPath)
Get the control information (create/delete/append) information for the
field at the given path.
|
Date |
getDate(org.ojai.FieldPath field) |
Date |
getDate(String field) |
BigDecimal |
getDecimal(org.ojai.FieldPath field) |
BigDecimal |
getDecimal(String field) |
void |
getDOMFromCachedBuffer() |
double |
getDouble(org.ojai.FieldPath field) |
double |
getDouble(String field) |
Double |
getDoubleObj(org.ojai.FieldPath field) |
Double |
getDoubleObj(String field) |
float |
getFloat(org.ojai.FieldPath field) |
float |
getFloat(String field) |
Float |
getFloatObj(org.ojai.FieldPath field) |
Float |
getFloatObj(String field) |
org.ojai.Value |
getId() |
String |
getIdAsString() |
ByteBuffer |
getIdBinary() |
String |
getIdString() |
int |
getIndex(String path) |
int |
getInt(org.ojai.FieldPath field) |
int |
getInt(String field) |
org.ojai.types.Interval |
getInterval(org.ojai.FieldPath fieldPath) |
org.ojai.types.Interval |
getInterval(String fieldPath) |
Integer |
getIntObj(org.ojai.FieldPath field) |
Integer |
getIntObj(String field) |
Map<org.ojai.FieldPath,Integer> |
getJsonPathMap() |
KeyValue |
getKeyValue(org.ojai.FieldPath path) |
KeyValue |
getKeyValue(String path) |
List<Object> |
getList(org.ojai.FieldPath fieldPath) |
List<Object> |
getList(String fieldPath) |
long |
getLong(org.ojai.FieldPath field) |
long |
getLong(String field) |
Long |
getLongObj(org.ojai.FieldPath field) |
Long |
getLongObj(String field) |
Map<String,Object> |
getMap(org.ojai.FieldPath fieldPath) |
Map<String,Object> |
getMap(String fieldPath) |
boolean |
getNeedDOMStruct() |
short |
getShort(org.ojai.FieldPath field) |
short |
getShort(String field) |
Short |
getShortObj(org.ojai.FieldPath field) |
Short |
getShortObj(String field) |
String |
getString(org.ojai.FieldPath field) |
String |
getString(String field) |
String |
getStringWithTs(Map<org.ojai.FieldPath,Integer> tablePathToIdMap) |
Time |
getTime(org.ojai.FieldPath field) |
Time |
getTime(String field) |
Timestamp |
getTimestamp(org.ojai.FieldPath fieldPath) |
Timestamp |
getTimestamp(String fieldPath) |
org.ojai.Value |
getValue(org.ojai.FieldPath fieldPath) |
org.ojai.Value |
getValue(String fieldPath) |
int |
hashCode() |
void |
insertKeyValue(String key,
KeyValue value,
boolean isAtRoot) |
boolean |
isEmpty() |
Iterator<Map.Entry<String,org.ojai.Value>> |
iterator() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> m) |
Object |
remove(Object key) |
void |
serializeToRowCol(ByteWriter w,
SerializationContext ctx) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
BigDecimal value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
boolean value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
byte value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
byte[] value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
byte[] value,
int off,
int len) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
ByteBuffer value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
Date value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
org.ojai.Document value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
double value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
float value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
int value) |
DBDocument |
set(org.ojai.FieldPath fieldPath,
org.ojai.types.Interval value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
List<? extends Object> value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
long value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
Map<String,? extends Object> value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
short value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
String value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
Time value) |
DBDocument |
set(org.ojai.FieldPath fieldPath,
Timestamp value) |
DBDocumentImpl |
set(org.ojai.FieldPath field,
org.ojai.Value value) |
DBDocumentImpl |
set(String field,
BigDecimal value) |
DBDocumentImpl |
set(String field,
boolean value) |
DBDocumentImpl |
set(String field,
byte value) |
DBDocumentImpl |
set(String field,
byte[] value) |
DBDocumentImpl |
set(String field,
byte[] value,
int off,
int len) |
DBDocumentImpl |
set(String field,
ByteBuffer value) |
DBDocumentImpl |
set(String field,
Date value) |
DBDocumentImpl |
set(String field,
org.ojai.Document value) |
DBDocumentImpl |
set(String field,
double value) |
DBDocumentImpl |
set(String field,
float value) |
DBDocumentImpl |
set(String field,
int value) |
DBDocument |
set(String fieldPath,
org.ojai.types.Interval value) |
DBDocumentImpl |
set(String field,
List<? extends Object> value) |
DBDocumentImpl |
set(String field,
long value) |
DBDocumentImpl |
set(String field,
Map<String,? extends Object> value) |
DBDocumentImpl |
set(String field,
short value) |
DBDocumentImpl |
set(String field,
String value) |
DBDocumentImpl |
set(String field,
Time value) |
DBDocument |
set(String fieldPath,
Timestamp value) |
DBDocumentImpl |
set(String field,
org.ojai.Value value) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
boolean[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
byte[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
double[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
float[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
int[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
long[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
Object... values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
short[] values) |
DBDocument |
setArray(org.ojai.FieldPath fieldPath,
String[] values) |
DBDocument |
setArray(String fieldPath,
boolean[] values) |
DBDocument |
setArray(String fieldPath,
byte[] values) |
DBDocument |
setArray(String fieldPath,
double[] values) |
DBDocument |
setArray(String fieldPath,
float[] values) |
DBDocument |
setArray(String fieldPath,
int[] values) |
DBDocument |
setArray(String fieldPath,
long[] values) |
DBDocument |
setArray(String fieldPath,
Object... values) |
DBDocument |
setArray(String fieldPath,
short[] values) |
DBDocument |
setArray(String fieldPath,
String[] values) |
void |
setCachedBuffer(ByteBuffer buffer) |
void |
setId(ByteBuffer _id)
Sets the the "_id" field of this Document to the specified string.
|
void |
setId(String _id)
Sets the the "_id" field of this Document to the specified string.
|
DBDocument |
setId(org.ojai.Value id)
Sets the the "_id" field of this Document to the specified Value.
|
DBDocument |
setNull(org.ojai.FieldPath fieldPath) |
DBDocument |
setNull(String fieldPath) |
void |
setRecursiveNonDefaultColumnFamily(boolean b,
int cfId) |
void |
setSerializedJson(Map<Integer,ByteBuffer> map,
Map<org.ojai.FieldPath,Integer> jsonPathMap,
Map<Integer,String> idToCFNameMap,
org.ojai.Value id,
boolean excludeId,
boolean insertionOrder,
boolean decodeTimestamp) |
DBDocumentImpl |
shallowCopy() |
int |
size() |
<T> T |
toJavaBean(Class<T> beanClass) |
String |
toString() |
String |
toStringWithTimestamp() |
Collection<Object> |
values() |
equals, getArrayIndexType, getBinary, getBoolean, getByte, getCFRootId, getDate, getDateAsInt, getDecimal, getDouble, getFloat, getInt, getInterval, getIntervalAsLong, getKey, getList, getLong, getMap, getObject, getOpType, getOrderOfField, getRecord, getShort, getStream, getString, getTime, getTimeAsInt, getTimeDescriptor, getTimestamp, getTimestampAsLong, getType, isArrayElement, isContainerType, isPartOfNonDefaultColumnFamily, isRoot, isRootOfColumnFamily, restoreKVOrder, setArrayIndex, setArrayIndexType, setCFRootId, setIsArrayElement, setIsRoot, setKey, setOpTypeAndFlags, setOrderOfField, setPartOfNonDefaultColumnFamily, setRootFlags, setRootOfColumnFamily, toString, valueToStringpublic void setSerializedJson(Map<Integer,ByteBuffer> map, Map<org.ojai.FieldPath,Integer> jsonPathMap, Map<Integer,String> idToCFNameMap, org.ojai.Value id, boolean excludeId, boolean insertionOrder, boolean decodeTimestamp)
public int hashCode()
public ControlInfo getControlInfo(String fieldPath)
DBDocumentgetControlInfo in interface DBDocumentpublic ControlInfo getControlInfo(org.ojai.FieldPath fieldPath)
getControlInfo in interface DBDocumentpublic DBDocumentImpl empty()
empty in interface DBDocumentempty in interface org.ojai.Documentpublic DBDocumentImpl set(String field, String value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, String value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, boolean value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, boolean value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, byte value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, byte value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, short value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, short value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, int value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, int value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, long value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, long value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, float value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, float value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, double value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, double value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, Time value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, Time value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, Date value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, Date value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, BigDecimal value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, BigDecimal value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, byte[] value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, byte[] value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, byte[] value, int off, int len)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, byte[] value, int off, int len)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, ByteBuffer value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, ByteBuffer value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, Map<String,? extends Object> value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, Map<String,? extends Object> value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, org.ojai.Document value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, org.ojai.Document value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, org.ojai.Value value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, org.ojai.Value value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(String field, List<? extends Object> value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocumentImpl set(org.ojai.FieldPath field, List<? extends Object> value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocument set(String fieldPath, Timestamp value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocument set(org.ojai.FieldPath fieldPath, Timestamp value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocument set(String fieldPath, org.ojai.types.Interval value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocument set(org.ojai.FieldPath fieldPath, org.ojai.types.Interval value)
set in interface DBDocumentset in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, byte[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, byte[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, boolean[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, boolean[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, short[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, short[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, int[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, int[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, long[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, long[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, float[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, float[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, double[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, double[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, String[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, String[] values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(String fieldPath, Object... values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setArray(org.ojai.FieldPath fieldPath, Object... values)
setArray in interface DBDocumentsetArray in interface org.ojai.Documentpublic DBDocument setNull(String fieldPath)
setNull in interface DBDocumentsetNull in interface org.ojai.Documentpublic DBDocument setNull(org.ojai.FieldPath fieldPath)
setNull in interface DBDocumentsetNull in interface org.ojai.Documentpublic KeyValue getKeyValue(org.ojai.FieldPath path)
public org.ojai.Value getValue(String fieldPath)
getValue in interface org.ojai.Documentpublic org.ojai.Value getValue(org.ojai.FieldPath fieldPath)
getValue in interface org.ojai.Documentpublic String getString(String field)
getString in interface org.ojai.Documentpublic String getString(org.ojai.FieldPath field)
getString in interface org.ojai.Documentpublic boolean getBoolean(String field)
getBoolean in interface org.ojai.Documentpublic boolean getBoolean(org.ojai.FieldPath field)
getBoolean in interface org.ojai.Documentpublic Boolean getBooleanObj(String field)
getBooleanObj in interface org.ojai.Documentpublic Boolean getBooleanObj(org.ojai.FieldPath field)
getBooleanObj in interface org.ojai.Documentpublic byte getByte(String field)
getByte in interface org.ojai.Documentpublic byte getByte(org.ojai.FieldPath field)
getByte in interface org.ojai.Documentpublic Byte getByteObj(String field)
getByteObj in interface org.ojai.Documentpublic Byte getByteObj(org.ojai.FieldPath field)
getByteObj in interface org.ojai.Documentpublic short getShort(String field)
getShort in interface org.ojai.Documentpublic short getShort(org.ojai.FieldPath field)
getShort in interface org.ojai.Documentpublic Short getShortObj(String field)
getShortObj in interface org.ojai.Documentpublic Short getShortObj(org.ojai.FieldPath field)
getShortObj in interface org.ojai.Documentpublic int getInt(String field)
getInt in interface org.ojai.Documentpublic int getInt(org.ojai.FieldPath field)
getInt in interface org.ojai.Documentpublic Integer getIntObj(String field)
getIntObj in interface org.ojai.Documentpublic Integer getIntObj(org.ojai.FieldPath field)
getIntObj in interface org.ojai.Documentpublic long getLong(String field)
getLong in interface org.ojai.Documentpublic long getLong(org.ojai.FieldPath field)
getLong in interface org.ojai.Documentpublic Long getLongObj(String field)
getLongObj in interface org.ojai.Documentpublic Long getLongObj(org.ojai.FieldPath field)
getLongObj in interface org.ojai.Documentpublic float getFloat(String field)
getFloat in interface org.ojai.Documentpublic float getFloat(org.ojai.FieldPath field)
getFloat in interface org.ojai.Documentpublic Float getFloatObj(String field)
getFloatObj in interface org.ojai.Documentpublic Float getFloatObj(org.ojai.FieldPath field)
getFloatObj in interface org.ojai.Documentpublic double getDouble(String field)
getDouble in interface org.ojai.Documentpublic double getDouble(org.ojai.FieldPath field)
getDouble in interface org.ojai.Documentpublic Double getDoubleObj(String field)
getDoubleObj in interface org.ojai.Documentpublic Double getDoubleObj(org.ojai.FieldPath field)
getDoubleObj in interface org.ojai.Documentpublic Time getTime(org.ojai.FieldPath field)
getTime in interface org.ojai.Documentpublic Date getDate(org.ojai.FieldPath field)
getDate in interface org.ojai.Documentpublic BigDecimal getDecimal(String field)
getDecimal in interface org.ojai.Documentpublic BigDecimal getDecimal(org.ojai.FieldPath field)
getDecimal in interface org.ojai.Documentpublic ByteBuffer getBinary(String field)
getBinary in interface org.ojai.Documentpublic ByteBuffer getBinary(org.ojai.FieldPath field)
getBinary in interface org.ojai.Documentpublic Timestamp getTimestamp(String fieldPath)
getTimestamp in interface org.ojai.Documentpublic Timestamp getTimestamp(org.ojai.FieldPath fieldPath)
getTimestamp in interface org.ojai.Documentpublic org.ojai.types.Interval getInterval(String fieldPath)
getInterval in interface org.ojai.Documentpublic org.ojai.types.Interval getInterval(org.ojai.FieldPath fieldPath)
getInterval in interface org.ojai.Documentpublic Map<String,Object> getMap(String fieldPath)
getMap in interface org.ojai.Documentpublic Map<String,Object> getMap(org.ojai.FieldPath fieldPath)
getMap in interface org.ojai.Documentpublic List<Object> getList(String fieldPath)
getList in interface org.ojai.Documentpublic List<Object> getList(org.ojai.FieldPath fieldPath)
getList in interface org.ojai.Documentpublic DBDocument delete(String field)
delete in interface DBDocumentdelete in interface org.ojai.Documentpublic DBDocument delete(org.ojai.FieldPath path)
delete in interface DBDocumentdelete in interface org.ojai.Documentpublic boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public int size()
public org.ojai.DocumentReader asReader()
asReader in interface org.ojai.Documentpublic void getDOMFromCachedBuffer()
public boolean getNeedDOMStruct()
public org.ojai.DocumentReader asReader(String fieldPath)
asReader in interface org.ojai.Documentpublic org.ojai.DocumentReader asReader(org.ojai.FieldPath fieldPath)
asReader in interface org.ojai.Documentpublic DBDocumentImpl shallowCopy()
shallowCopy in class KeyValuepublic int getIndex(String path)
public void setRecursiveNonDefaultColumnFamily(boolean b,
int cfId)
setRecursiveNonDefaultColumnFamily in class KeyValuepublic void serializeToRowCol(ByteWriter w, SerializationContext ctx)
public void deserializeFromRowCol(ByteBuffer input, SerializationContext ctx)
public <T> T toJavaBean(Class<T> beanClass)
toJavaBean in interface org.ojai.Documentpublic void setId(String _id)
DBDocumentsetId in interface DBDocument_id - String to set as the value of "_id" field.public void setId(ByteBuffer _id)
DBDocumentsetId in interface DBDocument_id - ByteBuffer to set as the value of "_id" field.public DBDocument setId(org.ojai.Value id)
DBDocumentsetId in interface DBDocumentid - Value to set as the value of "_id" field.public org.ojai.Value getId()
getId in interface DBDocumentpublic String getIdString()
getIdString in interface DBDocumentpublic ByteBuffer getIdBinary()
getIdBinary in interface DBDocument@API.Internal public String getIdAsString()
public String asJsonString()
asJsonString in interface org.ojai.Documentpublic String asJsonString(org.ojai.json.JsonOptions options)
asJsonString in interface org.ojai.Documentpublic String toStringWithTimestamp()
toStringWithTimestamp in class KeyValuepublic void setCachedBuffer(ByteBuffer buffer)
Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.