org.apache.nutch.indexer.solr
Class SolrDeleteDuplicates.SolrRecordReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
      extended by org.apache.nutch.indexer.solr.SolrDeleteDuplicates.SolrRecordReader
All Implemented Interfaces:
Closeable
Enclosing class:
SolrDeleteDuplicates

public static class SolrDeleteDuplicates.SolrRecordReader
extends RecordReader<Text,SolrDeleteDuplicates.SolrRecord>


Constructor Summary
SolrDeleteDuplicates.SolrRecordReader(org.apache.solr.common.SolrDocumentList solrDocs, int numDocs)
           
 
Method Summary
 void close()
           
 Text getCurrentKey()
           
 SolrDeleteDuplicates.SolrRecord getCurrentValue()
           
 float getProgress()
           
 void initialize(InputSplit split, TaskAttemptContext context)
           
 boolean nextKeyValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrDeleteDuplicates.SolrRecordReader

public SolrDeleteDuplicates.SolrRecordReader(org.apache.solr.common.SolrDocumentList solrDocs,
                                             int numDocs)
Method Detail

initialize

public void initialize(InputSplit split,
                       TaskAttemptContext context)
                throws IOException,
                       InterruptedException
Specified by:
initialize in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException
InterruptedException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException

getProgress

public float getProgress()
                  throws IOException
Specified by:
getProgress in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException

getCurrentKey

public Text getCurrentKey()
                   throws IOException,
                          InterruptedException
Specified by:
getCurrentKey in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException
InterruptedException

getCurrentValue

public SolrDeleteDuplicates.SolrRecord getCurrentValue()
                                                throws IOException,
                                                       InterruptedException
Specified by:
getCurrentValue in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException
InterruptedException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Specified by:
nextKeyValue in class RecordReader<Text,SolrDeleteDuplicates.SolrRecord>
Throws:
IOException
InterruptedException


Copyright © 2012 The Apache Software Foundation