public class HDFSSequenceFile extends AbstractHDFSWriter
Constructor and Description |
---|
HDFSSequenceFile() |
Modifier and Type | Method and Description |
---|---|
void |
append(Event e) |
void |
close() |
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
protected void |
open(org.apache.hadoop.fs.Path dstPath,
org.apache.hadoop.io.compress.CompressionCodec codeC,
org.apache.hadoop.io.SequenceFile.CompressionType compType,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem hdfs) |
void |
open(String filePath) |
void |
open(String filePath,
org.apache.hadoop.io.compress.CompressionCodec codeC,
org.apache.hadoop.io.SequenceFile.CompressionType compType) |
void |
sync() |
getFsDesiredReplication, getNumCurrentReplicas, hflushOrSync, isFileAppendable, isUnderReplicated, registerCurrentStream, unregisterCurrentStream
public void configure(Context context)
Configurable
Request the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure
in interface Configurable
configure
in class AbstractHDFSWriter
public void open(String filePath) throws IOException
IOException
public void open(String filePath, org.apache.hadoop.io.compress.CompressionCodec codeC, org.apache.hadoop.io.SequenceFile.CompressionType compType) throws IOException
IOException
protected void open(org.apache.hadoop.fs.Path dstPath, org.apache.hadoop.io.compress.CompressionCodec codeC, org.apache.hadoop.io.SequenceFile.CompressionType compType, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem hdfs) throws IOException
IOException
public void append(Event e) throws IOException
IOException
public void sync() throws IOException
IOException
public void close() throws IOException
IOException
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.