All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browseengine.bobo.mapred.BoboMapFunctionWrapper Maven / Gradle / Ivy

Go to download

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy