Package com.aerospike.client
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 Summary
Fields Modifier and Type Field Description Map<String,Object>
bins
Map of requested name/value bins.int
expiration
Date record will expire, in seconds from Jan 01 2010 00:00:00 GMTint
generation
Record modification count. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
Compare records for equality.boolean
getBoolean(String name)
Get bin value as boolean.byte
getByte(String name)
Get bin value as byte.double
getDouble(String name)
Get bin value as double.float
getFloat(String name)
Get bin value as float.String
getGeoJSON(String name)
Get bin value as GeoJSON (backward compatibility).String
getGeoJSONString(String name)
Get bin value as GeoJSON String.Value.GeoJSONValue
getGeoJSONValue(String name)
Get bin value as GeoJSON Value.Value.HLLValue
getHLLValue(String name)
Get bin value as HLL Value.int
getInt(String name)
Get bin value as int.List<?>
getList(String name)
Get bin value as list.long
getLong(String name)
Get bin value as long.Map<?,?>
getMap(String name)
Get bin value as map.short
getShort(String name)
Get bin value as short.String
getString(String name)
Get bin value as String.int
getTimeToLive()
Convert record expiration (seconds from Jan 01 2010 00:00:00 GMT) to ttl (seconds from now).Object
getValue(String name)
Get bin value given bin name.String
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. Enter empty string ("") for servers configured as single-bin. -
getString
Get bin value as String. -
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. -
getGeoJSON
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. -
equals
Compare records for equality.
-