|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IndexCache
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 |
decreaseDataVolume(long v)
Decrease the data volume |
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. |
long |
increaseDataVolume(long v)
Increase the data volume |
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 |
|---|
long size()
long addItem(IndexItem item,
Position position)
long addItem(IndexItem item,
long position)
IndexItem getItem(long n)
IndexItem getItem(Position p)
boolean containsItem(long pos)
boolean containsItem(Position p)
boolean hollowItem(long pos)
boolean hollowItem(Position p)
boolean removeItem(long pos)
boolean removeItem(Position p)
boolean clear()
long getDataVolume()
long increaseDataVolume(long v)
long decreaseDataVolume(long v)
Timestamp getFirstIndexTime()
Timestamp getLastIndexTime()
Timestamp getFirstDataTime()
Timestamp getLastDataTime()
CachePolicy setPolicy(CachePolicy policy)
CachePolicy getPolicy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||