com.aerospike.client
Class Record

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

public final class Record
extends Object

Container object for records. Records are equivalent to rows.


Field Summary
 Map<String,Object> bins
          Map of requested name/value bins.
 List<Map<String,Object>> duplicates
          List of all duplicate records (if any) for a given key.
 int expiration
          Date record will expire, in seconds from Jan 01 2010 00:00:00 GMT
 int generation
          Record modification count.
 
Constructor Summary
Record(Map<String,Object> bins, List<Map<String,Object>> duplicates, int generation, int expiration)
          Initialize record.
 
Method Summary
 Object getValue(String name)
          Get bin value given bin name.
 String toString()
          Return string representation of record.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bins

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


duplicates

public final List<Map<String,Object>> duplicates
List of all duplicate records (if any) for a given key. Duplicates are only created when the server configuration option "allow-versions" is true (default is false) and client RecordExistsAction.DUPLICATE policy flag is set and there is a generation error. Almost always null.


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 Detail

Record

public Record(Map<String,Object> bins,
              List<Map<String,Object>> duplicates,
              int generation,
              int expiration)
Initialize record.

Method Detail

getValue

public Object getValue(String name)
Get bin value given bin name. Enter empty string ("") for servers configured as single-bin.


toString

public String toString()
Return string representation of record.

Overrides:
toString in class Object


Copyright © 2012–2014 Aerospike, Inc. All rights reserved.