net.obsearch.pivots.dummy
Class IncrementalFixedPivotSelector

java.lang.Object
  extended by net.obsearch.pivots.dummy.IncrementalFixedPivotSelector
All Implemented Interfaces:
IncrementalPivotSelector

public class IncrementalFixedPivotSelector
extends Object
implements IncrementalPivotSelector

IncrementalFixedPivotSelector

Author:
Arnoldo Jose Muller Molina

Field Summary
static long[] def
          Pre-computed pivot definitions
static long[] lev
           
static long[][] levLevel
           
static long[] levScalab
           
static long[] mtd
           
static long[][] mtdLevel
           
static long[] ted
           
static long[][] tedLevel
           
 
Constructor Summary
IncrementalFixedPivotSelector()
           
IncrementalFixedPivotSelector(long[] ids)
           
IncrementalFixedPivotSelector(long[][] ids)
           
 
Method Summary
 PivotResult generatePivots(int pivotCount, Index index)
          Generates pivots from all the elements found in the DB.
 PivotResult generatePivots(int pivotCount, cern.colt.list.LongArrayList elements, Index 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
 

Field Detail

def

public static long[] def
Pre-computed pivot definitions


levScalab

public static long[] levScalab

ted

public static long[] ted

tedLevel

public static long[][] tedLevel

lev

public static long[] lev

levLevel

public static long[][] levLevel

mtd

public static long[] mtd

mtdLevel

public static long[][] mtdLevel
Constructor Detail

IncrementalFixedPivotSelector

public IncrementalFixedPivotSelector()

IncrementalFixedPivotSelector

public IncrementalFixedPivotSelector(long[] ids)

IncrementalFixedPivotSelector

public IncrementalFixedPivotSelector(long[][] ids)
Method Detail

generatePivots

public PivotResult generatePivots(int pivotCount,
                                  Index 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
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 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
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.