@API.Public public interface ChangeNode
Document.| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getBinary()
Returns the value as a
ByteBuffer. |
boolean |
getBoolean()
Returns the value as a
boolean. |
byte |
getByte()
Returns the
byte value of the current node. |
ODate |
getDate()
Returns the value as a
ODate object. |
int |
getDateAsInt()
Returns a
int representing the number of DAYS since Unix epoch. |
BigDecimal |
getDecimal()
Returns the value as a
BigDecimal. |
double |
getDouble()
Returns the value as a
double. |
float |
getFloat()
Returns the value as a
float. |
int |
getInt()
Returns the value as an
int. |
OInterval |
getInterval()
Returns the value as an
OInterval object. |
long |
getIntervalAsLong()
Returns a
long representing interval duration in milliseconds. |
List<Object> |
getList()
Returns the value as a
List<Object>. |
long |
getLong()
Returns the value as a
long. |
Map<String,Object> |
getMap()
Returns the value as a
Map<String, Object>. |
Object |
getObject()
Returns the value as an
Object of the underlying type. |
ChangeOp |
getOp()
Returns the
ChangeOp of the current change node. |
long |
getOpTimestamp()
Returns the logical time of the data.
|
long |
getServerTimestamp()
Returns the server timestamp of this change operation as
number of milliseconds since Unix epoch.
|
short |
getShort()
Returns the value as a
short. |
String |
getString()
Returns the value as a
String. |
OTime |
getTime()
Returns the value as a
OTime object. |
int |
getTimeAsInt()
Returns an
int representing the number of milliseconds since midnight. |
OTimestamp |
getTimestamp()
Returns the value as a
OTimestamp object. |
long |
getTimestampAsLong()
Returns a long value representing the number of milliseconds since epoch.
|
Value.Type |
getType()
Returns the type of the
OJAI Value of the
current node.Returns null if ChangeOp is not
SET or MERGE. |
Value |
getValue()
Returns The OJAI
Value of the current node. |
Value.Type getType()
OJAI Value of the
current node.ChangeOp is not
SET or MERGE.long getOpTimestamp()
long getServerTimestamp()
byte getByte()
byte value of the current node.TypeException - if this change node is not one of the numeric typesshort getShort()
short.TypeException - if this change node is not one of the numeric typesint getInt()
int.TypeException - if this change node is not one of the numeric typeslong getLong()
long.TypeException - if this change node is not one of the numeric typesfloat getFloat()
float.TypeException - if this change node is not one of the numeric typesdouble getDouble()
double.TypeException - if this change node is not one of the numeric typesBigDecimal getDecimal()
BigDecimal.TypeException - if this change node is not one of the numeric typesboolean getBoolean()
boolean.TypeException - if this change node is not of BOOLEAN typeString getString()
String.TypeException - if this change node is not of STRING typeOTimestamp getTimestamp()
OTimestamp object.TypeException - if this change node is not of TIMESTAMP typelong getTimestampAsLong()
TypeException - if this change node is not of TIMESTAMP typeODate getDate()
ODate object.TypeException - if this change node is not of DATE typeint getDateAsInt()
int representing the number of DAYS since Unix epoch.TypeException - if this change node is not of DATE typeOTime getTime()
OTime object. Modifying the
returned object does not alter the content of the Value.TypeException - if this change node is not of TIME typeint getTimeAsInt()
int representing the number of milliseconds since midnight.TypeException - if this change node is not of TIME typeOInterval getInterval()
OInterval object.
Modifying the returned object does not alter the content of the Value.TypeException - if this change node is not of INTERVAL typelong getIntervalAsLong()
long representing interval duration in milliseconds.TypeException - if this change node is not of INTERVAL typeByteBuffer getBinary()
ByteBuffer. Modifying the
returned object does not alter the content of the Value.TypeException - if this change node is not of BINARY typeMap<String,Object> getMap()
Map<String, Object>. The returned
Map could be mutable or immutable. Modifying the returned Map
does not alter the content of the Value.TypeException - if this change node is not of MAP typeList<Object> getList()
List<Object>. The returned List
could be mutable or immutable. Modifying the returned List does
not alter the content of the Value.TypeException - if this change node is not of ARRAY typeObject getObject()
Object of the underlying type.
Type.NULL => null Type.BOOLEAN => Boolean Type.STRING => String Type.BYTE => Byte Type.SHORT => Short Type.INT => Integer Type.LONG => Long Type.FLOAT => Float Type.DOUBLE => Double Type.DECIMAL => BigDecimal Type.DATE => org.ojai.types.ODate Type.TIME => org.ojai.types.OTime Type.TIMESTAMP => org.ojai.types.OTimestamp Type.INTERVAL => org.ojai.types.OInterval Type.BINARY => java.nio.ByteBuffer Type.MAP => Map<String, Object> Type.ARRAY => List<Object>
Value getValue()
Value of the current node.Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.