net.obsearch.pivots.random
Class RandomPivotSelector<O extends OB>
java.lang.Object
net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
net.obsearch.pivots.random.RandomPivotSelector<O>
- All Implemented Interfaces:
- IncrementalPivotSelector<O>
public class RandomPivotSelector<O extends OB>
- extends AbstractIncrementalPivotSelector<O>
- implements IncrementalPivotSelector<O>
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomPivotSelector
public RandomPivotSelector(Pivotable<O> pivotable)
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.