Class DelimitedRecordHiveMapper
java.lang.Object
org.apache.storm.hive.bolt.mapper.DelimitedRecordHiveMapper
- All Implemented Interfaces:
Serializable
,HiveMapper
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hive.hcatalog.streaming.RecordWriter
createRecordWriter
(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint) Given a endPoint, returns a RecordWriter with columnNames.mapPartitions
(TridentTuple tuple) Given a TridetnTuple, return a hive partition values list.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[]
Given a tuple, maps to a HiveRecord based on columnFields.withColumnFields
(Fields columnFields) withFieldDelimiter
(String delimiter) withPartitionFields
(Fields partitionFields) withTimeAsPartitionField
(String timeFormat) void
-
Constructor Details
-
DelimitedRecordHiveMapper
public DelimitedRecordHiveMapper()
-
-
Method Details
-
withColumnFields
-
withPartitionFields
-
withFieldDelimiter
-
withTimeAsPartitionField
-
createRecordWriter
public org.apache.hive.hcatalog.streaming.RecordWriter createRecordWriter(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint) throws org.apache.hive.hcatalog.streaming.StreamingException, IOException, ClassNotFoundException Description copied from interface:HiveMapper
Given a endPoint, returns a RecordWriter with columnNames.- Specified by:
createRecordWriter
in interfaceHiveMapper
- Throws:
org.apache.hive.hcatalog.streaming.StreamingException
IOException
ClassNotFoundException
-
write
public void write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch, Tuple tuple) throws org.apache.hive.hcatalog.streaming.StreamingException, IOException, InterruptedException - Specified by:
write
in interfaceHiveMapper
- Throws:
org.apache.hive.hcatalog.streaming.StreamingException
IOException
InterruptedException
-
mapPartitions
Description copied from interface:HiveMapper
Given a tuple, return a hive partition values list.- Specified by:
mapPartitions
in interfaceHiveMapper
-
mapPartitions
Description copied from interface:HiveMapper
Given a TridetnTuple, return a hive partition values list.- Specified by:
mapPartitions
in interfaceHiveMapper
-
mapRecord
Description copied from interface:HiveMapper
Given a tuple, maps to a HiveRecord based on columnFields.- Specified by:
mapRecord
in interfaceHiveMapper
-
mapRecord
Description copied from interface:HiveMapper
Given a TridentTuple, maps to a HiveRecord based on columnFields.- Specified by:
mapRecord
in interfaceHiveMapper
-
getFieldDelimiter
-