public class LegacyTranslogStream extends Object implements 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
|
public Translog.Operation read(StreamInput in) throws IOException
TranslogStream
read
in interface TranslogStream
IOException
public void write(StreamOutput out, Translog.Operation op) throws IOException
TranslogStream
write
in interface TranslogStream
IOException
public int writeHeader(FileChannel channel)
TranslogStream
writeHeader
in interface TranslogStream
public StreamInput openInput(File translogFile) throws FileNotFoundException
TranslogStream
openInput
in interface TranslogStream
FileNotFoundException
Copyright © 2009–2015. All rights reserved.