com.browseengine.bobo.mapred
Interface BoboMapFunctionWrapper


public interface BoboMapFunctionWrapper

Is the part of the bobo request, that maintains the map result intermediate state


Method Summary
 void finalizePartition()
          The callback method, after the partition was processed
 void finalizeSegment(BoboIndexReader reader, FacetCountCollector[] facetCountCollectors)
          The callback method, after the segment was processed
 MapReduceResult getResult()
           
 void mapFullIndexReader(BoboIndexReader reader, FacetCountCollector[] facetCountCollectors)
          When there is no filter, map reduce will try to map the entire segment
 void mapSingleDocument(int docId, BoboIndexReader reader)
          The basic callback method for a single doc
 

Method Detail

mapFullIndexReader

void mapFullIndexReader(BoboIndexReader reader,
                        FacetCountCollector[] facetCountCollectors)
When there is no filter, map reduce will try to map the entire segment

Parameters:
reader -

mapSingleDocument

void mapSingleDocument(int docId,
                       BoboIndexReader reader)
The basic callback method for a single doc

Parameters:
docId -
reader -

finalizeSegment

void finalizeSegment(BoboIndexReader reader,
                     FacetCountCollector[] facetCountCollectors)
The callback method, after the segment was processed

Parameters:
reader -

finalizePartition

void finalizePartition()
The callback method, after the partition was processed


getResult

MapReduceResult getResult()


Copyright © 2005-2013. All Rights Reserved.