public class HCatOutputFormatWriter extends HCatWriter
HCatOutputFormatconf, info, sp, we| Constructor and Description |
|---|
HCatOutputFormatWriter(WriteEntity we,
Map<String,String> config) |
HCatOutputFormatWriter(WriterContext cntxt,
StateProvider sp) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(WriterContext context)
This method should be called at master node.
|
void |
commit(WriterContext context)
This method should be called at master node.
|
WriterContext |
prepareWrite()
External system should invoke this method exactly once from a master node.
|
void |
write(Iterator<HCatRecord> recordItr)
This method should be used at slave needs to perform writes.
|
public HCatOutputFormatWriter(WriteEntity we, Map<String,String> config)
public HCatOutputFormatWriter(WriterContext cntxt, StateProvider sp)
public WriterContext prepareWrite() throws HCatException
HCatWriterprepareWrite in class HCatWriterWriterContext This should be serialized and sent to slave
nodes to construct HCatWriter there.HCatExceptionpublic void write(Iterator<HCatRecord> recordItr) throws HCatException
HCatWriterwrite in class HCatWriterrecordItr - Iterator records to be written into HCatalog.HCatExceptionpublic void commit(WriterContext context) throws HCatException
HCatWritercommit in class HCatWriterHCatExceptionpublic void abort(WriterContext context) throws HCatException
HCatWriterabort in class HCatWriterHCatExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.