net.obsearch.pivots.random
Class RandomPivotSelector<O extends OB>

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

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


Field Summary
 
Fields inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
pivotable, r
 
Constructor Summary
RandomPivotSelector(Pivotable<O> pivotable)
           
 
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 net.obsearch.pivots.AbstractIncrementalPivotSelector
enableAcceptRepeated, generatePivots, getObject, mapId, max, select, selectO, selectUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.obsearch.pivots.IncrementalPivotSelector
generatePivots
 

Constructor Detail

RandomPivotSelector

public RandomPivotSelector(Pivotable<O> pivotable)
Method Detail

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.