public class HBaseWriter extends PipelineableWriter
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus
next
COMMIT_FAIL, COMMIT_OK
Constructor and Description |
---|
HBaseWriter() |
HBaseWriter(boolean reportStats) |
HBaseWriter(ChukwaConfiguration conf,
org.apache.hadoop.conf.Configuration hconf) |
Modifier and Type | Method and Description |
---|---|
ChukwaWriter.CommitStatus |
add(List<Chunk> chunks)
Called repeatedly with data that should be serialized.
|
void |
close()
Called once, indicating that the writer should close files and prepare
to exit.
|
String |
findHBaseColumnFamilyName(String dataType) |
Annotation.Table |
findHBaseTable(String dataType) |
void |
init(org.apache.hadoop.conf.Configuration conf)
Called once to initialize this writer.
|
setNextStage
public HBaseWriter() throws IOException
IOException
public HBaseWriter(boolean reportStats) throws IOException
IOException
public HBaseWriter(ChukwaConfiguration conf, org.apache.hadoop.conf.Configuration hconf) throws IOException
IOException
public void close()
ChukwaWriter
public void init(org.apache.hadoop.conf.Configuration conf) throws WriterException
ChukwaWriter
WriterException
public ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriter
add
in interface ChukwaWriter
add
in class PipelineableWriter
WriterException
public Annotation.Table findHBaseTable(String dataType) throws UnknownRecordTypeException
UnknownRecordTypeException
public String findHBaseColumnFamilyName(String dataType) throws UnknownRecordTypeException
UnknownRecordTypeException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.