Package com.aerospike.client
Class BatchWrite
java.lang.Object
com.aerospike.client.BatchRecord
com.aerospike.client.BatchWrite
Batch key and read/write operations with write policy.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aerospike.client.BatchRecord
BatchRecord.Type
-
Field Summary
Modifier and TypeFieldDescriptionfinal Operation[]
Required operations for this key.final BatchWritePolicy
Optional write policy.Fields inherited from class com.aerospike.client.BatchRecord
hasWrite, inDoubt, key, record, resultCode
-
Constructor Summary
ConstructorDescriptionBatchWrite
(Key key, Operation[] ops) Initialize batch key and read/write operations.BatchWrite
(BatchWritePolicy policy, Key key, Operation[] ops) Initialize policy, batch key and read/write operations. -
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 write policy. -
ops
Required operations for this key.
-
-
Constructor Details
-
BatchWrite
Initialize batch key and read/write operations.Operation.get()
is not allowed because it returns a variable number of bins and makes it difficult (sometimes impossible) to lineup operations with results. Instead, useOperation.get(String)
for each bin name. -
BatchWrite
Initialize policy, batch key and read/write operations.Operation.get()
is not allowed because it returns a variable number of bins and makes it difficult (sometimes impossible) to lineup operations with results. Instead, useOperation.get(String)
for each bin name.
-
-
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
-