|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.cache.CachedIListPage
public class CachedIListPage
Represent one page of an inverted list stored in a cache.
Constructor Summary | |
---|---|
CachedIListPage(int capacity,
long id)
Constructor for the CachedIListPage object. |
Method Summary | |
---|---|
boolean |
addCachedIListItem(CachedIListItem item)
Adds a new item to the page. |
long |
capacity()
Returns the capacity of the page. |
long |
getId()
Gets the page id. |
CachedIListItem |
getIListItem(int id)
Gets an item on the requested position. |
boolean |
isFull()
Checks whether the page is full. |
long |
maxId()
Returns the ID of last stored item or -1 if the page is empty. |
long |
size()
Returns the number of items in the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedIListPage(int capacity, long id)
capacity
- capacity of the pageid
- id of the pageMethod Detail |
---|
public boolean addCachedIListItem(CachedIListItem item)
item
- item to add to page.
public CachedIListItem getIListItem(int id)
id
- position of the requested item
public long getId()
public boolean isFull()
public long size()
public long capacity()
public long maxId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |