Package com.aerospike.client
Class BatchRead
java.lang.Object
com.aerospike.client.BatchRecord
com.aerospike.client.BatchRead
Batch key and read only operations with default policy.
Used in batch read commands where different bins are needed for each key.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aerospike.client.BatchRecord
BatchRecord.Type
-
Field Summary
Modifier and TypeFieldDescriptionfinal String[]
Bins to retrieve for this key.final Operation[]
Optional operations for this key.final BatchReadPolicy
Optional read policy.final boolean
If true, ignore binNames and read all bins.Fields inherited from class com.aerospike.client.BatchRecord
hasWrite, inDoubt, key, record, resultCode
-
Constructor Summary
ConstructorDescriptionInitialize batch key and readAllBins indicator.Initialize batch key and read operations.Initialize batch key and bins to retrieve.BatchRead
(BatchReadPolicy policy, Key key, boolean readAllBins) Initialize batch policy, key and readAllBins indicator.BatchRead
(BatchReadPolicy policy, Key key, Operation[] ops) Initialize batch policy, key and read operations.BatchRead
(BatchReadPolicy policy, Key key, String[] binNames) Initialize batch policy, key and bins to retrieve. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(BatchRecord obj) Optimized reference equality check to determine batch wire protocol repeat flag.getType()
Return batch command type.int
Return wire protocol size.Methods inherited from class com.aerospike.client.BatchRecord
prepare, setError, setRecord, toString
-
Field Details
-
policy
Optional read policy. -
binNames
Bins to retrieve for this key. binNames are mutually exclusive withops
. -
ops
Optional operations for this key. ops are mutually exclusive withbinNames
. A binName can be emulated withOperation.get(String)
-
readAllBins
public final boolean readAllBinsIf 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.
-
-
Constructor Details
-
BatchRead
Initialize batch key and bins to retrieve. -
BatchRead
Initialize batch key and readAllBins indicator. -
BatchRead
Initialize batch key and read operations. -
BatchRead
Initialize batch policy, key and bins to retrieve. -
BatchRead
Initialize batch policy, key and readAllBins indicator. -
BatchRead
Initialize batch policy, key and read operations.
-
-
Method Details
-
getType
Return batch command type.- Overrides:
getType
in classBatchRecord
-
equals
Optimized reference equality check to determine batch wire protocol repeat flag. For internal use only.- Overrides:
equals
in classBatchRecord
-
size
Return wire protocol size. For internal use only.- Overrides:
size
in classBatchRecord
-