Class Value.BytesValue

java.lang.Object
com.aerospike.client.Value
com.aerospike.client.Value.BytesValue
Enclosing class:
Value

public static final class Value.BytesValue extends Value
Byte array value.
  • Constructor Details

    • BytesValue

      public BytesValue(byte[] bytes)
    • BytesValue

      public BytesValue(byte[] bytes, int type)
  • Method Details

    • estimateKeySize

      public int estimateKeySize()
      Description copied from class: Value
      Calculate 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:
      estimateKeySize in class Value
    • 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 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)
      Description copied from class: Value
      Serialize the value using MessagePack.
      Specified by:
      pack in class Value
    • 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
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object