Package com.yahoo.vespa.hadoop.mapreduce
Class VespaSimpleJsonInputFormat.VespaJsonRecordReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
com.yahoo.vespa.hadoop.mapreduce.VespaSimpleJsonInputFormat.VespaJsonRecordReader
- All Implemented Interfaces:
Closeable
,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>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.apache.hadoop.io.Text
org.apache.hadoop.io.NullWritable
float
void
initialize
(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) boolean
-
Constructor Details
-
VespaJsonRecordReader
public VespaJsonRecordReader()
-
-
Method Details
-
initialize
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException - Specified by:
initialize
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
InterruptedException
-
nextKeyValue
- Specified by:
nextKeyValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
InterruptedException
-
getCurrentKey
- Specified by:
getCurrentKey
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
InterruptedException
-
getProgress
- Specified by:
getProgress
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
InterruptedException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,
org.apache.hadoop.io.NullWritable> - Throws:
IOException
-