net.obsearch.index.sorter
Interface Projection<O,CP>

All Superinterfaces:
Comparable<O>
All Known Implementing Classes:
PermProjection, SketchProjection

public interface Projection<O,CP>
extends Comparable<O>

A sortable (from the point of view of a query) projection


Method Summary
 O distance(CP b)
          Calculate the distance of this projection and the given compact representation.
 byte[] getAddress()
           
 CP getCompactRepresentation()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getCompactRepresentation

CP getCompactRepresentation()

getAddress

byte[] getAddress()

distance

O distance(CP b)
Calculate the distance of this projection and the given compact representation.

Parameters:
b -
Returns:


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