public class ChecksummedTranslogStream extends Object implements TranslogStream
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
StreamInput |
openInput(File translogFile)
Seek past the header, if any header is present
|
Translog.Operation |
read(StreamInput inStream)
Read the next translog operation from the input stream
|
void |
write(StreamOutput outStream,
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
|
public static final int VERSION
public Translog.Operation read(StreamInput inStream) throws IOException
TranslogStreamread in interface TranslogStreamIOExceptionpublic void write(StreamOutput outStream, Translog.Operation op) throws IOException
TranslogStreamwrite in interface TranslogStreamIOExceptionpublic int writeHeader(FileChannel channel) throws IOException
TranslogStreamwriteHeader in interface TranslogStreamIOExceptionpublic StreamInput openInput(File translogFile) throws IOException
TranslogStreamopenInput in interface TranslogStreamIOExceptionCopyright © 2009–2016. All rights reserved.