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, toString
public 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 BatchRecord
public boolean equals(BatchRecord obj)
equals
in class BatchRecord
public int size(Policy parentPolicy)
size
in class BatchRecord
Copyright © 2012–2023 Aerospike, Inc. All rights reserved.