Package com.aerospike.client
Class Value.DoubleValue
java.lang.Object
com.aerospike.client.Value
com.aerospike.client.Value.DoubleValue
- Enclosing class:
Value
Double value.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aerospike.client.Value
Value.BooleanValue, Value.BoolIntValue, Value.ByteSegmentValue, Value.BytesValue, Value.ByteValue, Value.DoubleValue, Value.FloatValue, Value.GeoJSONValue, Value.HLLValue, Value.InfinityValue, Value.IntegerValue, Value.ListValue, Value.LongValue, Value.MapValue, Value.NullValue, Value.ShortValue, Value.SortedMapValue, Value.StringValue, Value.ValueArray, Value.WildcardValue -
Field Summary
Fields inherited from class com.aerospike.client.Value
INFINITY, NULL, ReturnMapForKeyValue, UseBoolBin, WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintCalculate the approximate number of bytes necessary to serialize a key in the wire protocol.intCalculate number of bytes necessary to serialize the value in the wire protocol.org.luaj.vm2.LuaValuegetLuaValue(com.aerospike.client.lua.LuaInstance instance) Return value as an Object.Return original value as an Object.intgetType()Get wire protocol value type.inthashCode()voidpack(com.aerospike.client.util.Packer packer) Serialize the value using MessagePack.intReturn value as an integer.longtoLong()Return value as a long.toString()intwrite(byte[] buffer, int offset) Serialize the value in the wire protocol.
-
Constructor Details
-
DoubleValue
public DoubleValue(double value)
-
-
Method Details
-
estimateKeySize
public int estimateKeySize()Description copied from class:ValueCalculate the approximate number of bytes necessary to serialize a key in the wire protocol. Size is not exact and may be greater than the actual bytes needed. Size must not be underestimated.- Overrides:
estimateKeySizein classValue
-
estimateSize
public int estimateSize()Description copied from class:ValueCalculate number of bytes necessary to serialize the value in the wire protocol.- Specified by:
estimateSizein classValue
-
write
public int write(byte[] buffer, int offset) Description copied from class:ValueSerialize the value in the wire protocol. -
pack
public void pack(com.aerospike.client.util.Packer packer) Description copied from class:ValueSerialize the value using MessagePack. -
getType
public int getType()Description copied from class:ValueGet wire protocol value type. -
getObject
Description copied from class:ValueReturn original value as an Object. -
getLuaValue
public org.luaj.vm2.LuaValue getLuaValue(com.aerospike.client.lua.LuaInstance instance) Description copied from class:ValueReturn value as an Object.- Specified by:
getLuaValuein classValue
-
toString
-
equals
-
hashCode
public int hashCode() -
toInteger
public int toInteger()Description copied from class:ValueReturn value as an integer. -
toLong
public long toLong()Description copied from class:ValueReturn value as a long.
-