org.apache.hadoop.hbase.regionserver.wal
Interface HLog.Writer

All Known Implementing Classes:
ProtobufLogWriter, SecureProtobufLogWriter, WriterBase
Enclosing interface:
HLog

public static interface HLog.Writer


Method Summary
 void append(HLog.Entry entry)
           
 void close()
           
 long getLength()
           
 void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration c, boolean overwritable)
           
 void setWALTrailer(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALTrailer walTrailer)
          Sets HLog's WALTrailer.
 void sync()
           
 

Method Detail

init

void init(org.apache.hadoop.fs.FileSystem fs,
          org.apache.hadoop.fs.Path path,
          org.apache.hadoop.conf.Configuration c,
          boolean overwritable)
          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(org.apache.hadoop.hbase.protobuf.generated.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 © 2007-2015 The Apache Software Foundation. All Rights Reserved.