public class DummyValue
extends java.lang.Object
implements org.ojai.Value
DummyValue(Type) or Type.NULL if DummyValue() is used.TYPE_CODE_ARRAY, TYPE_CODE_BINARY, TYPE_CODE_BOOLEAN, TYPE_CODE_BYTE, TYPE_CODE_DATE, TYPE_CODE_DECIMAL, TYPE_CODE_DOUBLE, TYPE_CODE_FLOAT, TYPE_CODE_INT, TYPE_CODE_INTERVAL, TYPE_CODE_LONG, TYPE_CODE_MAP, TYPE_CODE_NULL, TYPE_CODE_SHORT, TYPE_CODE_STRING, TYPE_CODE_TIME, TYPE_CODE_TIMESTAMP| Constructor and Description |
|---|
DummyValue()
Constructor.
|
DummyValue(org.ojai.Value.Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asJsonString() |
java.lang.String |
asJsonString(org.ojai.json.JsonOptions arg0) |
org.ojai.DocumentReader |
asReader() |
java.nio.ByteBuffer |
getBinary() |
boolean |
getBoolean() |
byte |
getByte() |
org.ojai.types.ODate |
getDate() |
int |
getDateAsInt() |
java.math.BigDecimal |
getDecimal() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
org.ojai.types.OInterval |
getInterval() |
long |
getIntervalAsLong() |
java.util.List<java.lang.Object> |
getList() |
long |
getLong() |
java.util.Map<java.lang.String,java.lang.Object> |
getMap() |
java.lang.Object |
getObject() |
short |
getShort() |
java.lang.String |
getString() |
org.ojai.types.OTime |
getTime() |
int |
getTimeAsInt() |
org.ojai.types.OTimestamp |
getTimestamp() |
long |
getTimestampAsLong() |
org.ojai.Value.Type |
getType() |
public DummyValue(org.ojai.Value.Type type)
getType() will return the provided type.type - public DummyValue()
getType() will return Type.NULL.public java.lang.String asJsonString()
asJsonString in interface org.ojai.JsonStringpublic java.lang.String asJsonString(org.ojai.json.JsonOptions arg0)
asJsonString in interface org.ojai.JsonStringpublic org.ojai.DocumentReader asReader()
asReader in interface org.ojai.Valuepublic java.nio.ByteBuffer getBinary()
getBinary in interface org.ojai.Valuepublic boolean getBoolean()
getBoolean in interface org.ojai.Valuepublic byte getByte()
getByte in interface org.ojai.Valuepublic org.ojai.types.ODate getDate()
getDate in interface org.ojai.Valuepublic int getDateAsInt()
getDateAsInt in interface org.ojai.Valuepublic java.math.BigDecimal getDecimal()
getDecimal in interface org.ojai.Valuepublic double getDouble()
getDouble in interface org.ojai.Valuepublic float getFloat()
getFloat in interface org.ojai.Valuepublic int getInt()
getInt in interface org.ojai.Valuepublic org.ojai.types.OInterval getInterval()
getInterval in interface org.ojai.Valuepublic long getIntervalAsLong()
getIntervalAsLong in interface org.ojai.Valuepublic java.util.List<java.lang.Object> getList()
getList in interface org.ojai.Valuepublic long getLong()
getLong in interface org.ojai.Valuepublic java.util.Map<java.lang.String,java.lang.Object> getMap()
getMap in interface org.ojai.Valuepublic java.lang.Object getObject()
getObject in interface org.ojai.Valuepublic short getShort()
getShort in interface org.ojai.Valuepublic java.lang.String getString()
getString in interface org.ojai.Valuepublic org.ojai.types.OTime getTime()
getTime in interface org.ojai.Valuepublic int getTimeAsInt()
getTimeAsInt in interface org.ojai.Valuepublic org.ojai.types.OTimestamp getTimestamp()
getTimestamp in interface org.ojai.Valuepublic long getTimestampAsLong()
getTimestampAsLong in interface org.ojai.Valuepublic org.ojai.Value.Type getType()
getType in interface org.ojai.Value