public final class Record extends Object
Modifier and Type | Field and 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 GMT
|
int |
generation
Record modification count.
|
Constructor and Description |
---|
Record(Map<String,Object> bins,
int generation,
int expiration)
Initialize record.
|
Modifier and Type | Method and 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.
|
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.
|
public final int generation
public final int expiration
public Object getValue(String name)
public double getDouble(String name)
public float getFloat(String name)
public long getLong(String name)
public int getInt(String name)
public short getShort(String name)
public byte getByte(String name)
public boolean getBoolean(String name)
public Value.GeoJSONValue getGeoJSONValue(String name)
public int getTimeToLive()
public String toString()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.