Interface HiveMapper

    • Method Detail

      • createRecordWriter

        org.apache.hive.hcatalog.streaming.RecordWriter createRecordWriter​(org.apache.hive.hcatalog.streaming.HiveEndPoint endPoint)
                                                                    throws org.apache.hive.hcatalog.streaming.StreamingException,
                                                                           IOException,
                                                                           ClassNotFoundException
        Given a endPoint, returns a RecordWriter with columnNames.
        Throws:
        org.apache.hive.hcatalog.streaming.StreamingException
        IOException
        ClassNotFoundException
      • mapPartitions

        List<String> mapPartitions​(Tuple tuple)
        Given a tuple, return a hive partition values list.
      • mapPartitions

        List<String> mapPartitions​(TridentTuple tuple)
        Given a TridetnTuple, return a hive partition values list.
      • mapRecord

        byte[] mapRecord​(Tuple tuple)
        Given a tuple, maps to a HiveRecord based on columnFields.
      • mapRecord

        byte[] mapRecord​(TridentTuple tuple)
        Given a TridentTuple, maps to a HiveRecord based on columnFields.