com.aerospike.client
Class Value.ByteSegmentValue

java.lang.Object
  extended by com.aerospike.client.Value
      extended by com.aerospike.client.Value.ByteSegmentValue
Enclosing class:
Value

public static final class Value.ByteSegmentValue
extends Value

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

Value.ByteSegmentValue

public Value.ByteSegmentValue(byte[] bytes,
                              int offset,
                              int length)
Method Detail

estimateSize

public int estimateSize()
Description copied from class: Value
Calculate number of bytes necessary to serialize the value in the wire protocol.

Specified by:
estimateSize in class Value

write

public int write(byte[] buffer,
                 int targetOffset)
Description copied from class: Value
Serialize the value in the wire protocol.

Specified by:
write in class Value

pack

public void pack(com.aerospike.client.util.Packer packer)
          throws IOException
Description copied from class: Value
Serialize the value using MessagePack.

Specified by:
pack in class Value
Throws:
IOException

getType

public int getType()
Description copied from class: Value
Get wire protocol value type.

Specified by:
getType in class Value

getObject

public Object getObject()
Description copied from class: Value
Return original value as an Object.

Specified by:
getObject in class Value

getLuaValue

public org.luaj.vm2.LuaValue getLuaValue(com.aerospike.client.lua.LuaInstance instance)
Description copied from class: Value
Return value as an Object.

Specified by:
getLuaValue in class Value

toString

public String toString()
Overrides:
toString in class Object

getBytes

public byte[] getBytes()

getOffset

public int getOffset()

getLength

public int getLength()


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.