public final class BatchRead
extends Object
Key and bin names used in batch read commands where variables bins are needed for each key.
Field Summary
Fields
Modifier and Type
Field
Description
String []
binNames
Bins to retrieve for this key.
Key
key
Key.
boolean
readAllBins
If true, ignore binNames and read all bins.
Record
record
Record result after batch command has completed.
Constructor Summary
Constructors
Constructor
Description
BatchRead (Key key,
boolean readAllBins)
Initialize batch key and readAllBins indicator.
BatchRead (Key key,
String [] binNames)
Initialize batch key and bins to retrieve.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
String
toString ()
Convert BatchRead to string.
Field Details
public final String [] binNames
Bins to retrieve for this key.
public final boolean readAllBins
If true, ignore binNames and read all bins.
If false and binNames are set, read specified binNames.
If false and binNames are not set, read record header (generation, expiration) only.
Record result after batch command has completed. Will be null if record was not found.
Constructor Details
public BatchRead (
Key key,
String [] binNames)
Initialize batch key and bins to retrieve.
Parameters:
key
- record key
binNames
- array of bins to retrieve.
public BatchRead (
Key key,
boolean readAllBins)
Initialize batch key and readAllBins indicator.
Parameters:
key
- record key
readAllBins
- should all bins in record be retrieved.