Class VespaSimpleJsonInputFormat.VespaJsonRecordReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    VespaSimpleJsonInputFormat

    public static class VespaSimpleJsonInputFormat.VespaJsonRecordReader
    extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      org.apache.hadoop.io.Text getCurrentKey()  
      org.apache.hadoop.io.NullWritable getCurrentValue()  
      float getProgress()  
      void initialize​(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)  
      boolean nextKeyValue()  
      • Methods inherited from class java.lang.Object

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

      • VespaJsonRecordReader

        public VespaJsonRecordReader()
    • Method Detail

      • initialize

        public void initialize​(org.apache.hadoop.mapreduce.InputSplit split,
                               org.apache.hadoop.mapreduce.TaskAttemptContext context)
                        throws java.io.IOException,
                               java.lang.InterruptedException
        Specified by:
        initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • nextKeyValue

        public boolean nextKeyValue()
                             throws java.io.IOException,
                                    java.lang.InterruptedException
        Specified by:
        nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getCurrentKey

        public org.apache.hadoop.io.Text getCurrentKey()
                                                throws java.io.IOException,
                                                       java.lang.InterruptedException
        Specified by:
        getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getCurrentValue

        public org.apache.hadoop.io.NullWritable getCurrentValue()
                                                          throws java.io.IOException,
                                                                 java.lang.InterruptedException
        Specified by:
        getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getProgress

        public float getProgress()
                          throws java.io.IOException,
                                 java.lang.InterruptedException
        Specified by:
        getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,​org.apache.hadoop.io.NullWritable>
        Throws:
        java.io.IOException