public class WriteAheadLogRandomReader
extends Object
implements java.io.Closeable
WriteAheadLogWriter
. Given the file segment info,
this reads the record (bytebuffer) from the log file.Constructor and Description |
---|
WriteAheadLogRandomReader(String path,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.nio.ByteBuffer |
read(WriteAheadLogFileSegment segment) |
public WriteAheadLogRandomReader(String path, org.apache.hadoop.conf.Configuration conf)
public java.nio.ByteBuffer read(WriteAheadLogFileSegment segment)
public void close()
close
in interface java.io.Closeable
close
in interface AutoCloseable