public class SequenceFileLogWriter extends Object implements HLog.Writer
HLog.Writer
that delegates to
SequenceFile.Writer.Constructor and Description |
---|
SequenceFileLogWriter()
Default constructor.
|
SequenceFileLogWriter(Class<? extends HLogKey> keyClass)
This constructor allows a specific HLogKey implementation to override that
which would otherwise be chosen via configuration property.
|
Modifier and Type | Method and Description |
---|---|
void |
append(HLog.Entry entry) |
void |
close() |
long |
getLength() |
org.apache.hadoop.fs.FSDataOutputStream |
getWriterFSDataOutputStream() |
void |
init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
void |
sync() |
public void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
init
in interface HLog.Writer
IOException
public void append(HLog.Entry entry) throws IOException
append
in interface HLog.Writer
IOException
public void close() throws IOException
close
in interface HLog.Writer
IOException
public void sync() throws IOException
sync
in interface HLog.Writer
IOException
public long getLength() throws IOException
getLength
in interface HLog.Writer
IOException
public org.apache.hadoop.fs.FSDataOutputStream getWriterFSDataOutputStream()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.