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 HiveEventSerializer
org.apache.hive.hcatalog.streaming.StreamingException
IOException
InterruptedException
public void write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch, Collection<byte[]> events) throws org.apache.hive.hcatalog.streaming.StreamingException, IOException, InterruptedException
write
in interface HiveEventSerializer
org.apache.hive.hcatalog.streaming.StreamingException
IOException
InterruptedException
public 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 HiveEventSerializer
org.apache.hive.hcatalog.streaming.StreamingException
IOException
ClassNotFoundException
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
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.