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
FieldsModifier and TypeFieldDescriptionfinal Operation[]Required operations for this key.final BatchWritePolicyOptional write policy.Fields inherited from class com.aerospike.client.BatchRecord
hasWrite, inDoubt, key, record, resultCode -
Constructor Summary
ConstructorsConstructorDescriptionBatchWrite(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 TypeMethodDescriptionbooleanequals(BatchRecord obj, com.aerospike.client.configuration.ConfigurationProvider configProvider) Optimized reference equality check to determine batch wire protocol repeat flag.getType()Return batch command type.intReturn 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:
getTypein classBatchRecord
-
equals
public boolean equals(BatchRecord obj, com.aerospike.client.configuration.ConfigurationProvider configProvider) Optimized reference equality check to determine batch wire protocol repeat flag. For internal use only.- Overrides:
equalsin classBatchRecord
-
size
public int size(Policy parentPolicy, com.aerospike.client.configuration.ConfigurationProvider configProvider) Return wire protocol size. For internal use only.- Overrides:
sizein classBatchRecord
-