|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aerospike.client.Value com.aerospike.client.Value.ByteSegmentValue
public static final class Value.ByteSegmentValue
Byte segment value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.aerospike.client.Value |
---|
Value.BlobValue, Value.ByteSegmentValue, Value.BytesValue, Value.IntegerValue, Value.ListValue, Value.LongValue, Value.MapValue, Value.NullValue, Value.StringValue, Value.ValueArray |
Constructor Summary | |
---|---|
Value.ByteSegmentValue(byte[] bytes,
int offset,
int length)
|
Method Summary | |
---|---|
int |
estimateSize()
Calculate number of bytes necessary to serialize the value in the wire protocol. |
byte[] |
getBytes()
|
int |
getLength()
|
org.luaj.vm2.LuaValue |
getLuaValue(com.aerospike.client.lua.LuaInstance instance)
Return value as an Object. |
Object |
getObject()
Return original value as an Object. |
int |
getOffset()
|
int |
getType()
Get wire protocol value type. |
void |
pack(com.aerospike.client.util.Packer packer)
Serialize the value using MessagePack. |
String |
toString()
|
int |
write(byte[] buffer,
int targetOffset)
Serialize the value in the wire protocol. |
Methods inherited from class com.aerospike.client.Value |
---|
get, get, get, get, get, get, get, getAsBlob, getAsList, getAsMap, getAsNull |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Value.ByteSegmentValue(byte[] bytes, int offset, int length)
Method Detail |
---|
public int estimateSize()
Value
estimateSize
in class Value
public int write(byte[] buffer, int targetOffset)
Value
write
in class Value
public void pack(com.aerospike.client.util.Packer packer) throws IOException
Value
pack
in class Value
IOException
public int getType()
Value
getType
in class Value
public Object getObject()
Value
getObject
in class Value
public org.luaj.vm2.LuaValue getLuaValue(com.aerospike.client.lua.LuaInstance instance)
Value
getLuaValue
in class Value
public String toString()
toString
in class Object
public byte[] getBytes()
public int getOffset()
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |