org.apache.hadoop.hbase.regionserver.wal
Interface HLog.Writer
- All Known Implementing Classes:
- ProtobufLogWriter, WriterBase
- Enclosing interface:
- HLog
public static interface HLog.Writer
init
void init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration c)
throws IOException
- Throws:
IOException
close
void close()
throws IOException
- Throws:
IOException
sync
void sync()
throws IOException
- Throws:
IOException
append
void append(HLog.Entry entry)
throws IOException
- Throws:
IOException
getLength
long getLength()
throws IOException
- Throws:
IOException
setWALTrailer
void setWALTrailer(WALProtos.WALTrailer walTrailer)
- Sets HLog's WALTrailer. This trailer is appended at the end of WAL on closing.
- Parameters:
walTrailer
- trailer to append to WAL.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.