net.obsearch.pivots.dummy
Class IncrementalDummyPivotSelector<O extends OB>
java.lang.Object
net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncrementalDummyPivotSelector
public IncrementalDummyPivotSelector()
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.