Class Record

java.lang.Object
com.aerospike.client.Record

public final class Record extends Object
Container object for records. Records are equivalent to rows.
  • Field Details

    • bins

      public final Map<String,Object> bins
      Map of requested name/value bins.
    • generation

      public final int generation
      Record modification count.
    • expiration

      public final int expiration
      Date record will expire, in seconds from Jan 01 2010 00:00:00 GMT
  • Constructor Details

    • Record

      public Record(Map<String,Object> bins, int generation, int expiration)
      Initialize record.
  • Method Details

    • getValue

      public Object getValue(String name)
      Get bin value given bin name.
    • getString

      public String getString(String name)
      Get bin value as String.
    • getBytes

      public byte[] getBytes(String name)
      Get bin value as byte[].
    • getDouble

      public double getDouble(String name)
      Get bin value as double.
    • getFloat

      public float getFloat(String name)
      Get bin value as float.
    • getLong

      public long getLong(String name)
      Get bin value as long.
    • getInt

      public int getInt(String name)
      Get bin value as int.
    • getShort

      public short getShort(String name)
      Get bin value as short.
    • getByte

      public byte getByte(String name)
      Get bin value as byte.
    • getBoolean

      public boolean getBoolean(String name)
      Get bin value as boolean.
    • getList

      public List<?> getList(String name)
      Get bin value as list.
    • getMap

      public Map<?,?> getMap(String name)
      Get bin value as map.
    • getUDFResult

      public Object getUDFResult()
      Get the value returned by a UDF execute in a batch. The result may be null.
    • getUDFError

      public String getUDFError()
      Get the error string returned by a UDF execute in a batch. Return null if an error did not occur.
    • getGeoJSON

      @Deprecated public String getGeoJSON(String name)
      Deprecated.
      This method is deprecated. Use getGeoJSONString(String) instead. Get bin value as GeoJSON (backward compatibility).
    • getGeoJSONString

      public String getGeoJSONString(String name)
      Get bin value as GeoJSON String.
    • getGeoJSONValue

      public Value.GeoJSONValue getGeoJSONValue(String name)
      Get bin value as GeoJSON Value.
    • getHLLValue

      public Value.HLLValue getHLLValue(String name)
      Get bin value as HLL Value.
    • getTimeToLive

      public int getTimeToLive()
      Convert record expiration (seconds from Jan 01 2010 00:00:00 GMT) to ttl (seconds from now).
    • toString

      public String toString()
      Return String representation of record.
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Compare records for equality.
      Overrides:
      equals in class Object