net.obsearch.pivots.bustos.impl
Class IncrementalBustosNavarroChavezShort<O extends OBShort>

java.lang.Object
  extended by net.obsearch.pivots.AbstractIncrementalPivotSelector<O>
      extended by net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O>
          extended by net.obsearch.pivots.bustos.impl.IncrementalBustosNavarroChavezShort<O>
All Implemented Interfaces:
net.obsearch.pivots.IncrementalPivotSelector<O>

public class IncrementalBustosNavarroChavezShort<O extends OBShort>
extends net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O>
implements net.obsearch.pivots.IncrementalPivotSelector<O>

IncrementalBustosNavarroChavezShort is an implementation for OBShort objects

Author:
Arnoldo Jose Muller Molina

Field Summary
 
Fields inherited from class net.obsearch.pivots.AbstractIncrementalPivotSelector
pivotable, r
 
Constructor Summary
IncrementalBustosNavarroChavezShort(net.obsearch.pivots.Pivotable<O> pivotable, int l, int m)
          Receives the object that accepts pivots as possible candidates.
 
Method Summary
protected  double calculateMedian(long[] pivots, long[] x, long[] y, net.obsearch.Index<O> index)
           
protected  void resetCache(int x)
           
protected  boolean validatePivots(long[] pivots, long id, net.obsearch.Index<O> index)
           
 
Methods inherited from class net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez
generatePivots
 
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, generatePivots
 

Constructor Detail

IncrementalBustosNavarroChavezShort

public IncrementalBustosNavarroChavezShort(net.obsearch.pivots.Pivotable<O> pivotable,
                                           int l,
                                           int m)
Receives the object that accepts pivots as possible candidates. Selects l pairs of objects to compare which set of pivots is better, and selects m possible pivot candidates from the data set.

Parameters:
pivotable -
l - pairs of objects to select
m - m possible pivot candidates to be randomly picked.
Method Detail

calculateMedian

protected double calculateMedian(long[] pivots,
                                 long[] x,
                                 long[] y,
                                 net.obsearch.Index<O> index)
                          throws com.sleepycat.je.DatabaseException,
                                 net.obsearch.exception.IllegalIdException,
                                 IllegalAccessException,
                                 InstantiationException,
                                 net.obsearch.exception.OBException
Specified by:
calculateMedian in class net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O extends OBShort>
Throws:
com.sleepycat.je.DatabaseException
net.obsearch.exception.IllegalIdException
IllegalAccessException
InstantiationException
net.obsearch.exception.OBException

resetCache

protected void resetCache(int x)
Specified by:
resetCache in class net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O extends OBShort>

validatePivots

protected boolean validatePivots(long[] pivots,
                                 long id,
                                 net.obsearch.Index<O> index)
                          throws com.sleepycat.je.DatabaseException,
                                 net.obsearch.exception.IllegalIdException,
                                 IllegalAccessException,
                                 InstantiationException,
                                 net.obsearch.exception.OBException
Specified by:
validatePivots in class net.obsearch.pivots.bustos.AbstractIncrementalBustosNavarroChavez<O extends OBShort>
Throws:
com.sleepycat.je.DatabaseException
net.obsearch.exception.IllegalIdException
IllegalAccessException
InstantiationException
net.obsearch.exception.OBException


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