com.aerospike.client
Class Value.MapValue

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

public static final class Value.MapValue
extends Value

Map value. Supported by Aerospike 3 servers only.


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.MapValue(Map<?,?> map)
           
 
Method Summary
 int estimateSize()
          Calculate number of bytes necessary to serialize the value in the wire protocol.
 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 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 offset)
          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.MapValue

public Value.MapValue(Map<?,?> map)
Method Detail

estimateSize

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

Specified by:
estimateSize in class Value
Throws:
AerospikeException

write

public int write(byte[] buffer,
                 int offset)
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


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