|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The time index itself. The values of the index may or may not be in core. It is up to the implementations to decide how much will be kept in core.
Method Summary | |
long |
addItem(IndexItem item,
long position)
Add an Index Item to the Index. |
long |
addItem(IndexItem item,
Position position)
Add an Index Item to the Index. |
boolean |
clear()
Clear the whole cache |
boolean |
containsItem(long pos)
Contains the IndexItem at the speicifed position. |
boolean |
containsItem(Position p)
Contains the IndexItem at the speicifed position. |
long |
getDataVolume()
Get the current data volume held by IndexItems in a cache. |
Timestamp |
getFirstDataTime()
Get the time the first IndexItem was put into the Index. |
Timestamp |
getFirstIndexTime()
Get the time the first IndexItem was put into the Index. |
IndexItem |
getItem(long n)
Get an Index Item from the Index. |
IndexItem |
getItem(Position p)
Get an Index Item from the Index. |
Timestamp |
getLastDataTime()
Get the time the last IndexItem was put into the Index. |
Timestamp |
getLastIndexTime()
Get the time the last IndexItem was put into the Index. |
CachePolicy |
getPolicy()
Get the current cache policy. |
boolean |
hollowItem(long pos)
Hollow out the IndexItem at the speicifed position. |
boolean |
hollowItem(Position p)
Hollow out the IndexItem at the speicifed position. |
boolean |
removeItem(long pos)
Remove the IndexItem at the speicifed position. |
boolean |
removeItem(Position p)
Remove the IndexItem at the speicifed position. |
CachePolicy |
setPolicy(CachePolicy policy)
Set the cache policy. |
long |
size()
Get the no of items in the index. |
Method Detail |
public long size()
public long addItem(IndexItem item, Position position)
public long addItem(IndexItem item, long position)
public IndexItem getItem(long n)
public IndexItem getItem(Position p)
public boolean containsItem(long pos)
public boolean containsItem(Position p)
public boolean hollowItem(long pos)
public boolean hollowItem(Position p)
public boolean removeItem(long pos)
public boolean removeItem(Position p)
public boolean clear()
public long getDataVolume()
public Timestamp getFirstIndexTime()
public Timestamp getLastIndexTime()
public Timestamp getFirstDataTime()
public Timestamp getLastDataTime()
public CachePolicy setPolicy(CachePolicy policy)
public CachePolicy getPolicy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |