com.browseengine.bobo.mapred.BoboMapFunctionWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bobo-browse Show documentation
Show all versions of bobo-browse Show documentation
Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene
The newest version!
package com.browseengine.bobo.mapred;
import com.browseengine.bobo.api.BoboSegmentReader;
import com.browseengine.bobo.facets.FacetCountCollector;
/**
* Is the part of the bobo request, that maintains the map result intermediate state
*
*/
public interface BoboMapFunctionWrapper {
/**
* When there is no filter, map reduce will try to map the entire segment
* @param reader
*/
public void mapFullIndexReader(BoboSegmentReader reader,
FacetCountCollector[] facetCountCollectors);
/**
* The basic callback method for a single doc
* @param docId
* @param reader
*/
public void mapSingleDocument(int docId, BoboSegmentReader reader);
/**
* The callback method, after the segment was processed
* @param reader
*/
public void finalizeSegment(BoboSegmentReader reader, FacetCountCollector[] facetCountCollectors);
/**
* The callback method, after the partition was processed
*
*/
public void finalizePartition();
public MapReduceResult getResult();
}