public class HiveDelimitedTextSerializer extends Object implements HiveEventSerializer
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
static String |
defaultDelimiter |
static String |
SERIALIZER_DELIMITER |
static String |
SERIALIZER_FIELDNAMES |
static String |
SERIALIZER_SERDE_SEPARATOR |
Constructor and Description |
---|
HiveDelimitedTextSerializer() |
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 static final String defaultDelimiter
public static final String SERIALIZER_DELIMITER
public static final String SERIALIZER_FIELDNAMES
public static final String SERIALIZER_SERDE_SEPARATOR
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.