HCatOutputFormatWriter insteadpublic class HCatOutputFormatWriter extends HCatWriter
HCatOutputFormatconf, info, sp, we| Constructor and Description |
|---|
HCatOutputFormatWriter(Configuration config,
StateProvider sp)
Deprecated.
|
HCatOutputFormatWriter(WriteEntity we,
java.util.Map<java.lang.String,java.lang.String> config)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(WriterContext context)
Deprecated.
This method should be called at master node.
|
void |
commit(WriterContext context)
Deprecated.
This method should be called at master node.
|
WriterContext |
prepareWrite()
Deprecated.
External system should invoke this method exactly once from a master node.
|
void |
write(java.util.Iterator<HCatRecord> recordItr)
Deprecated.
This method should be used at slave needs to perform writes.
|
public HCatOutputFormatWriter(WriteEntity we, java.util.Map<java.lang.String,java.lang.String> config)
public HCatOutputFormatWriter(Configuration config,
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(java.util.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 © 2012 The Apache Software Foundation