net.obsearch.pivots.dummy
Class IncrementalDummyPivotSelector<O extends OB>

java.lang.Object
  extended by net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
      extended by net.obsearch.pivots.dummy.IncrementalDummyPivotSelector<O>
All Implemented Interfaces:
IncrementalPivotSelector<O>

public class IncrementalDummyPivotSelector<O extends OB>
extends AbstractIncrementalPivotSelector<O>
implements IncrementalPivotSelector<O>

IncrementalDummyPivotSelector is used for testing purposes.

Author:
Arnoldo Jose Muller Molina

Field Summary
 
Fields inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
pivotable, r
 
Constructor Summary
IncrementalDummyPivotSelector()
           
 
Method Summary
 PivotResult generatePivots(int pivotCount, Index<O> index)
          Generates pivots from all the elements found in the DB.
 PivotResult generatePivots(int pivotCount, cern.colt.list.LongArrayList elements, Index<O> index)
          Generates pivots from the elements (object ids) given in the array elements.
 
Methods inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
enableAcceptRepeated, getObject, mapId, max, select, selectO, selectUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementalDummyPivotSelector

public IncrementalDummyPivotSelector()
Method Detail

generatePivots

public PivotResult generatePivots(int pivotCount,
                                  Index<O> index)
                           throws OBException,
                                  IllegalAccessException,
                                  InstantiationException,
                                  OBStorageException,
                                  PivotsUnavailableException
Description copied from interface: IncrementalPivotSelector
Generates pivots from all the elements found in the DB.

Specified by:
generatePivots in interface IncrementalPivotSelector<O extends OB>
Overrides:
generatePivots in class AbstractIncrementalPivotSelector<O extends OB>
Parameters:
pivotCount - The # of pivots that will be generated.
Returns:
A list of the ids of the pivots.
Throws:
OBStorageException - If something goes wrong with the DB
OBException - User generated exception
IllegalAccessException - If there is a problem when instantiating objects O
InstantiationException - If there is a problem when instantiating objects O
PivotsUnavailableException - If not all the pivots requested were found.

generatePivots

public PivotResult generatePivots(int pivotCount,
                                  cern.colt.list.LongArrayList elements,
                                  Index<O> index)
                           throws OBException,
                                  IllegalAccessException,
                                  InstantiationException,
                                  OBStorageException,
                                  PivotsUnavailableException
Description copied from interface: IncrementalPivotSelector
Generates pivots from the elements (object ids) given in the array elements. Generates pivotsCount pivots.

Specified by:
generatePivots in interface IncrementalPivotSelector<O extends OB>
Specified by:
generatePivots in class AbstractIncrementalPivotSelector<O extends OB>
Returns:
A list of the ids of the pivots.
Throws:
OBException
IllegalAccessException
InstantiationException
OBStorageException
PivotsUnavailableException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.