public class HiveJsonSerializer extends Object implements HiveEventSerializer
| Constructor and Description |
|---|
HiveJsonSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
org.apache.hive.hcatalog.streaming.RecordWriter |
createRecordWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint) |
void |
write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Collection<byte[]> events) |
void |
write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Event e) |
public static final String ALIAS
public void write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Event e)
throws org.apache.hive.hcatalog.streaming.StreamingException,
IOException,
InterruptedException
write in interface HiveEventSerializerorg.apache.hive.hcatalog.streaming.StreamingExceptionIOExceptionInterruptedExceptionpublic void write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Collection<byte[]> events)
throws org.apache.hive.hcatalog.streaming.StreamingException,
IOException,
InterruptedException
write in interface HiveEventSerializerorg.apache.hive.hcatalog.streaming.StreamingExceptionIOExceptionInterruptedExceptionpublic org.apache.hive.hcatalog.streaming.RecordWriter createRecordWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint)
throws org.apache.hive.hcatalog.streaming.StreamingException,
IOException,
ClassNotFoundException
createRecordWriter in interface HiveEventSerializerorg.apache.hive.hcatalog.streaming.StreamingExceptionIOExceptionClassNotFoundExceptionpublic void configure(Context context)
ConfigurableRequest 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 ConfigurableCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.