public final class BatchReadPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
Expression |
filterExp
Optional expression filter.
|
ReadModeAP |
readModeAP
Read policy for AP (availability) namespaces.
|
ReadModeSC |
readModeSC
Read policy for SC (strong consistency) namespaces.
|
int |
readTouchTtlPercent
Determine how record TTL (time to live) is affected on reads.
|
| Constructor and Description |
|---|
BatchReadPolicy()
Default constructor.
|
BatchReadPolicy(BatchReadPolicy other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setFilterExp(Expression filterExp) |
void |
setReadModeAP(ReadModeAP readModeAP) |
void |
setReadModeSC(ReadModeSC readModeSC) |
void |
setReadTouchTtlPercent(int readTouchTtlPercent) |
public Expression filterExp
BatchRecord.resultCode is set to
ResultCode.FILTERED_OUT.
If exists, this filter overrides the batch parent filter Policy.filterExp
for the specific key in batch commands that allow a different policy per key.
Otherwise, this filter is ignored.
Default: null
public ReadModeAP readModeAP
Default: ReadModeAP.ONE
public ReadModeSC readModeSC
Default: ReadModeSC.SESSION
public int readTouchTtlPercent
For example, if the most recent write had a TTL of 10 hours and read_touch_ttl_percent is set to 80, the next read within 8 hours of the record's end of life (equivalent to 2 hours after the most recent write) will result in a touch, resetting the TTL to another 10 hours.
Values:
Default: 0
public BatchReadPolicy(BatchReadPolicy other)
public BatchReadPolicy()
public void setFilterExp(Expression filterExp)
public void setReadModeAP(ReadModeAP readModeAP)
public void setReadModeSC(ReadModeSC readModeSC)
public void setReadTouchTtlPercent(int readTouchTtlPercent)
Copyright © 2012–2024 Aerospike, Inc. All rights reserved.