org.egothor.cache
Class CachedIListItem

java.lang.Object
  extended by org.egothor.cache.CachedIListItem
All Implemented Interfaces:
IListItem

public class CachedIListItem
extends java.lang.Object
implements IListItem

Represents one item of the inverted list that is stored in a memory.


Constructor Summary
CachedIListItem(long uid, int weight)
          Constructor for the CachedIListItem object.
 
Method Summary
 Proximities openProx()
          Always return null.
 long uid()
          Returns the UID of the document.
 int weight()
          Returns the weight of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedIListItem

public CachedIListItem(long uid,
                       int weight)
Constructor for the CachedIListItem object.

Parameters:
uid - uid of the document
weight - weight of the document
Method Detail

uid

public long uid()
Returns the UID of the document.

Specified by:
uid in interface IListItem
Returns:
uid of the document

weight

public int weight()
Returns the weight of the document.

Specified by:
weight in interface IListItem
Returns:
weight of the document

openProx

public Proximities openProx()
Always return null.

Specified by:
openProx in interface IListItem
Returns:
null