public interface HiveMapper extends Serializable
org.apache.storm.tuple.Tupe
object
to a row in an Hive table.Modifier and Type | Method and Description |
---|---|
org.apache.hive.hcatalog.streaming.RecordWriter |
createRecordWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint)
Given a endPoint, returns a RecordWriter with columnNames.
|
List<String> |
mapPartitions(TridentTuple tuple)
Given a TridetnTuple, return a hive partition values list.
|
List<String> |
mapPartitions(Tuple tuple)
Given a tuple, return a hive partition values list.
|
byte[] |
mapRecord(TridentTuple tuple)
Given a TridentTuple, maps to a HiveRecord based on columnFields.
|
byte[] |
mapRecord(Tuple tuple)
Given a tuple, maps to a HiveRecord based on columnFields.
|
void |
write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Tuple tuple) |
org.apache.hive.hcatalog.streaming.RecordWriter createRecordWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint) throws org.apache.hive.hcatalog.streaming.StreamingException, IOException, ClassNotFoundException
org.apache.hive.hcatalog.streaming.StreamingException
IOException
ClassNotFoundException
void write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch, Tuple tuple) throws org.apache.hive.hcatalog.streaming.StreamingException, IOException, InterruptedException
org.apache.hive.hcatalog.streaming.StreamingException
IOException
InterruptedException
List<String> mapPartitions(Tuple tuple)
List<String> mapPartitions(TridentTuple tuple)
byte[] mapRecord(Tuple tuple)
byte[] mapRecord(TridentTuple tuple)
Copyright © 2023 The Apache Software Foundation. All rights reserved.