Operation, TransactionOperation, TransactionSingleOpOperationpublic class ReadSublistOp extends PartialReadOp
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ReadSublistOp.Result |
Result type of sublist operations.
|
| Constructor | Description |
|---|---|
ReadSublistOp(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangInt start,
com.ericsson.otp.erlang.OtpErlangInt length) |
Constructor
|
ReadSublistOp(java.lang.String key,
int start,
int length) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
com.ericsson.otp.erlang.OtpErlangObject |
getErlang(boolean compressed) |
Gets the erlang representation of the operation.
|
ReadSublistOp.Result |
processResult() |
Processes the result set by
Operation.setResult(OtpErlangObject, boolean). |
ReadSublistOp.Result |
processResultSingle() |
Processes the result set by
Operation.setResult(OtpErlangObject, boolean)
assuming that operation was committed. |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetKey, getResult, getResultCompressed, setResultpublic ReadSublistOp(com.ericsson.otp.erlang.OtpErlangString key,
com.ericsson.otp.erlang.OtpErlangInt start,
com.ericsson.otp.erlang.OtpErlangInt length)
key - the key to readstart - the start of the sublist (may be negative - see
ReadSublistOp)length - the length of the sublist (may be negative - see
ReadSublistOp)public ReadSublistOp(java.lang.String key,
int start,
int length)
key - the key to readstart - the start of the sublist (may be negative - see
ReadSublistOp)length - the length of the sublist (may be negative - see
ReadSublistOp)public com.ericsson.otp.erlang.OtpErlangObject getErlang(boolean compressed)
Operationcompressed - whether the value part in the term should be encoded, i.e.
compressed into an Erlang binary, or notpublic ReadSublistOp.Result processResult() throws NotFoundException, NotAListException, UnknownException
OperationOperation.setResult(OtpErlangObject, boolean).
Note: the created value is not cached!NotFoundException - if the requested key does not existNotAListException - if the previously stored value was no listUnknownException - if any other error occurspublic ReadSublistOp.Result processResultSingle() throws NotFoundException, NotAListException, UnknownException
TransactionSingleOpOperationOperation.setResult(OtpErlangObject, boolean)
assuming that operation was committed.
In contrast to Operation.processResult() operations like WriteOp
will throw a proper AbortException for their commit part instead
of an UnknownException.
Note: the created value is not cached!NotFoundException - if the requested key does not existNotAListException - if the previously stored value was no listUnknownException - if any other error occurspublic java.lang.String toString()
toString in class java.lang.Object