public final class BatchWrite extends BatchRecord
BatchRecord.Type| Modifier and Type | Field and Description |
|---|---|
Operation[] |
ops
Required operations for this key.
|
BatchWritePolicy |
policy
Optional write policy.
|
hasWrite, inDoubt, key, record, resultCode| Constructor and Description |
|---|
BatchWrite(BatchWritePolicy policy,
Key key,
Operation[] ops)
Initialize policy, batch key and read/write operations.
|
BatchWrite(Key key,
Operation[] ops)
Initialize batch key and read/write operations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(BatchRecord obj)
Optimized reference equality check to determine batch wire protocol repeat flag.
|
BatchRecord.Type |
getType()
Return batch command type.
|
int |
size(Policy parentPolicy)
Return wire protocol size.
|
prepare, setError, setRecord, toStringpublic final BatchWritePolicy policy
public final Operation[] ops
public BatchWrite(Key key, Operation[] ops)
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,
use Operation.get(String) for each bin name.
public BatchWrite(BatchWritePolicy policy, Key key, Operation[] ops)
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,
use Operation.get(String) for each bin name.
public BatchRecord.Type getType()
getType in class BatchRecordpublic boolean equals(BatchRecord obj)
equals in class BatchRecordpublic int size(Policy parentPolicy)
size in class BatchRecordCopyright © 2012–2024 Aerospike, Inc. All rights reserved.