public class ReadOp extends RadosBase implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadOp.ReadResult |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
operate(String oid,
int flags)
Executes operations added to the rados_read_op_t.
|
ReadOp.ReadResult |
queueRead(long offset,
long len)
Add a read operation to the rados_read_op_t via rados_read_op_read.
|
handleReturnCode, throwExceptionpublic ReadOp.ReadResult queueRead(long offset, long len) throws RadosException
offset - starting offset into the objectlen - length of the readRadosExceptionpublic void operate(String oid, int flags) throws RadosException
oid - the name of the object to operate onflags - the flags for the operationRadosExceptionoperation flagspublic void close()
close in interface AutoCloseableCopyright © 2020. All rights reserved.