org.gcube.indexmanagement.featureindexlibrary.commons
Class LookupBuffer

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.LookupBuffer

public class LookupBuffer
extends Object

Element holding top k results

Author:
UoA

Constructor Summary
LookupBuffer(int k)
          Creates a new instance
 
Method Summary
 ArrayList<RankedResultElement> getResults(String indexName)
          Retrieves the results
 float process(RankedResultElement element)
          processes a new element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupBuffer

public LookupBuffer(int k)
Creates a new instance

Parameters:
k - The number of results
Method Detail

getResults

public ArrayList<RankedResultElement> getResults(String indexName)
Retrieves the results

Parameters:
indexName - The index name
Returns:
The results

process

public float process(RankedResultElement element)
processes a new element

Parameters:
element - the element to check for addition
Returns:
The k-th max distance


Copyright © 2013. All Rights Reserved.