Class ExternalJsonRecordWriter


  • public class ExternalJsonRecordWriter
    extends org.apache.hadoop.mapreduce.RecordWriter<com.mapr.db.mapreduce.impl.ByteBufWritableComparable,​org.ojai.Document>
    Created by bparkison on 8/18/15.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(org.apache.hadoop.mapreduce.TaskAttemptContext job)  
      void write​(com.mapr.db.mapreduce.impl.ByteBufWritableComparable key, org.ojai.Document value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalJsonRecordWriter

        public ExternalJsonRecordWriter​(GatewaySink sink,
                                        boolean isCompare)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close​(org.apache.hadoop.mapreduce.TaskAttemptContext job)
                   throws java.io.IOException
        Specified by:
        close in class org.apache.hadoop.mapreduce.RecordWriter<com.mapr.db.mapreduce.impl.ByteBufWritableComparable,​org.ojai.Document>
        Throws:
        java.io.IOException
      • write

        public void write​(com.mapr.db.mapreduce.impl.ByteBufWritableComparable key,
                          org.ojai.Document value)
                   throws java.io.IOException
        Specified by:
        write in class org.apache.hadoop.mapreduce.RecordWriter<com.mapr.db.mapreduce.impl.ByteBufWritableComparable,​org.ojai.Document>
        Throws:
        java.io.IOException