gr.uoa.di.madgik.searchlibrary.operatorlibrary.indexfuse
Class ResultElement

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.indexfuse.ResultElement

public class ResultElement
extends Object

Class used to hold elements from content and metadata collections that refer to the same Information Object.

Author:
UoA

Constructor Summary
ResultElement(String id, int cols)
          public Constructor for a ResultElement
 
Method Summary
 String getId()
          Return the id for this element
 int getInserted()
          Gets the number of inserted elements for this result
 double getRank()
          Return the rank of this element
 boolean insertElement(JoinElement element, double weight)
          Inserts a new element for the IO, this result refers to
 boolean isSent()
          Return if this element is sent
 void tagSent()
          Tag this element as sent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultElement

public ResultElement(String id,
                     int cols)
public Constructor for a ResultElement

Parameters:
id - - The OID
metaCols - - upper bound for the content/metadata elements that this result can have
Method Detail

insertElement

public boolean insertElement(JoinElement element,
                             double weight)
Inserts a new element for the IO, this result refers to

Parameters:
element - - the new element
weight - - the weight for the rank of this new element
Returns:
true in case of success

getInserted

public int getInserted()
Gets the number of inserted elements for this result

Returns:
inserted

tagSent

public void tagSent()
Tag this element as sent


isSent

public boolean isSent()
Return if this element is sent


getRank

public double getRank()
Return the rank of this element


getId

public String getId()
Return the id for this element



Copyright © 2013. All Rights Reserved.