@Deprecated public class LuceneSegmentRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
RecordReader implementation for Lucene segments. Each InputSplit contains a separate Lucene segment.
Emits records consisting of a Text document ID and a null key.| Modifier and Type | Field and Description |
|---|---|
static int |
USE_TERM_INFO
Deprecated.
|
| Constructor and Description |
|---|
LuceneSegmentRecordReader()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
org.apache.hadoop.io.Text |
getCurrentKey()
Deprecated.
|
org.apache.hadoop.io.NullWritable |
getCurrentValue()
Deprecated.
|
float |
getProgress()
Deprecated.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Deprecated.
|
boolean |
nextKeyValue()
Deprecated.
|
public static final int USE_TERM_INFO
public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.Text getCurrentKey()
throws IOException,
InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.NullWritable getCurrentValue()
throws IOException,
InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.