Package com.aerospike.client
Class Record
java.lang.Object
com.aerospike.client.Record
Container object for records. Records are equivalent to rows.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of requested name/value bins.final int
Date record will expire, in seconds from Jan 01 2010 00:00:00 GMTfinal int
Record modification count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare records for equality.boolean
getBoolean
(String name) Get bin value as boolean.byte
Get bin value as byte.byte[]
Get bin value as byte[].double
Get bin value as double.float
Get bin value as float.getGeoJSON
(String name) Deprecated.getGeoJSONString
(String name) Get bin value as GeoJSON String.getGeoJSONValue
(String name) Get bin value as GeoJSON Value.getHLLValue
(String name) Get bin value as HLL Value.int
Get bin value as int.List
<?> Get bin value as list.long
Get bin value as long.Map
<?, ?> Get bin value as map.short
Get bin value as short.Get bin value as String.int
Convert record expiration (seconds from Jan 01 2010 00:00:00 GMT) to ttl (seconds from now).Get the error string returned by a UDF execute in a batch.Get the value returned by a UDF execute in a batch.Get bin value given bin name.int
hashCode()
toString()
Return String representation of record.
-
Field Details
-
bins
Map of requested name/value bins. -
generation
public final int generationRecord modification count. -
expiration
public final int expirationDate record will expire, in seconds from Jan 01 2010 00:00:00 GMT
-
-
Constructor Details
-
Record
Initialize record.
-
-
Method Details
-
getValue
Get bin value given bin name. -
getString
Get bin value as String. -
getBytes
Get bin value as byte[]. -
getDouble
Get bin value as double. -
getFloat
Get bin value as float. -
getLong
Get bin value as long. -
getInt
Get bin value as int. -
getShort
Get bin value as short. -
getByte
Get bin value as byte. -
getBoolean
Get bin value as boolean. -
getList
Get bin value as list. -
getMap
Get bin value as map. -
getUDFResult
Get the value returned by a UDF execute in a batch. The result may be null. -
getUDFError
Get the error string returned by a UDF execute in a batch. Return null if an error did not occur. -
getGeoJSON
Deprecated.This method is deprecated. UsegetGeoJSONString(String)
instead. Get bin value as GeoJSON (backward compatibility). -
getGeoJSONString
Get bin value as GeoJSON String. -
getGeoJSONValue
Get bin value as GeoJSON Value. -
getHLLValue
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
Return String representation of record. -
hashCode
public int hashCode() -
equals
Compare records for equality.
-