public interface Operation
Modifier and Type | Method and Description |
---|---|
OtpErlangObject |
getErlang(boolean compressed)
Gets the erlang representation of the operation.
|
OtpErlangString |
getKey()
Gets the key the operation is working on (if available)
|
OtpErlangObject |
getResult()
Gets the (raw Erlang) result set via
setResult(OtpErlangObject, boolean) . |
boolean |
getResultCompressed()
Determines if the result set via
setResult(OtpErlangObject, boolean) is compressed or not. |
Object |
processResult()
Processes the result set by
setResult(OtpErlangObject, boolean) . |
void |
setResult(OtpErlangObject resultRaw,
boolean compressed)
Sets the raw erlang result value.
|
OtpErlangObject getErlang(boolean compressed)
compressed
- whether the value part in the term should be encoded, i.e.
compressed into an Erlang binary, or notOtpErlangString getKey()
void setResult(OtpErlangObject resultRaw, boolean compressed)
processResult()
.resultRaw
- the resultcompressed
- whether the value inside the result is compressed or notOtpErlangObject getResult()
setResult(OtpErlangObject, boolean)
.boolean getResultCompressed()
setResult(OtpErlangObject, boolean)
is compressed or not.Object processResult() throws NotFoundException, KeyChangedException, NotANumberException, NotAListException, AbortException, EmptyListException, UnknownException
setResult(OtpErlangObject, boolean)
.
Note: the created value is not cached!NotFoundException
- if the requested key does not existKeyChangedException
- if the key did not match old_valueNotANumberException
- if the previously stored value was not a numberNotAListException
- if the previously stored value was no listEmptyListException
- if the stored value is an empty list but the op requires a
non-empty listAbortException
- if a commit failedUnknownException
- if any other error occurs