net.obsearch.pivots
Interface Pivotable<O extends OB>

Type Parameters:
O - Type of object of the index to be analyzed.
All Known Implementing Classes:
AcceptAll, TreePivotable

public interface Pivotable<O extends OB>

This interface is used by some pivot selectors to determine if a given object can be used as a pivot. There can be distance functions for which some objects are more expensive to compute than others. For example, trees. The bigger the tree is, the more expensive it is to compute its distance.

Since:
0.8
Author:
Arnoldo Jose Muller Molina

Method Summary
 boolean canBeUsedAsPivot(O object)
          Returns true if the given object can be used as a pivot.
 

Method Detail

canBeUsedAsPivot

boolean canBeUsedAsPivot(O object)
                         throws OBException
Returns true if the given object can be used as a pivot.

Parameters:
object -
Returns:
true if the object should be used as a pivot
Throws:
OBException - If something goes wrong


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