public interface TranslogStream
| Modifier and Type | Method and Description |
|---|---|
StreamInput |
openInput(File translogFile)
Seek past the header, if any header is present
|
Translog.Operation |
read(StreamInput in)
Read the next translog operation from the input stream
|
void |
write(StreamOutput out,
Translog.Operation op)
Write the given translog operation to the output stream
|
int |
writeHeader(FileChannel channel)
Optionally write a header identifying the translog version to the
file channel
|
Translog.Operation read(StreamInput in) throws IOException
IOExceptionvoid write(StreamOutput out, Translog.Operation op) throws IOException
IOExceptionint writeHeader(FileChannel channel) throws IOException
IOExceptionStreamInput openInput(File translogFile) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.