|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.vajhoej.isam.cache.CacheIsamSource
public class CacheIsamSource
Class CacheIsamSource is a wrapper adding a cache to an ISAM source.
Constructor Summary | |
---|---|
CacheIsamSource(IsamSource real)
Create instance of CacheIsamSource with default cache implementation. |
|
CacheIsamSource(IsamSource real,
IsamCache cache)
Create instance of CacheIsamSource. |
Method Summary | ||
---|---|---|
void |
close()
Close ISAM source. |
|
|
create(T o)
Create record in ISAM source. |
|
|
delete(java.lang.Class<T> t,
Key<TK> k)
Delete record from ISAM source. |
|
double |
getHitRate()
Get hit rate. |
|
|
read(java.lang.Class<T> t,
Key<TK> k)
Read record from ISAM source. |
|
|
readGE(java.lang.Class<T> t,
Key<TK> k)
Find all records greater than or equal key. |
|
|
readGT(java.lang.Class<T> t,
Key<TK> k)
Read all records greater than key. |
|
|
readLE(java.lang.Class<T> t,
Key<TK> k)
Read all records less than or equal key. |
|
|
readLT(java.lang.Class<T> t,
Key<TK> k)
Read all records less than key. |
|
|
update(T o)
Update record in ISAM source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheIsamSource(IsamSource real)
real
- ISAM sourcepublic CacheIsamSource(IsamSource real, IsamCache cache)
real
- ISAM sourcecache
- cache implementationMethod Detail |
---|
public <T,TK> T read(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
read
in interface IsamSource
t
- type to readk
- key of record to read
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T> void create(T o) throws IsamException, RecordException
IsamSource
create
in interface IsamSource
o
- object to create
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T> void update(T o) throws IsamException, RecordException
IsamSource
update
in interface IsamSource
o
- object to update
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T,TK> void delete(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
delete
in interface IsamSource
t
- type to deletek
- key of record to delete
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic void close() throws IsamException
IsamSource
close
in interface IsamSource
IsamException
- if problem with ISAM sourcepublic <T,TK> IsamResult<T> readGE(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readGE
in interface IsamSource
t
- type to findk
- key to find
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T,TK> IsamResult<T> readGT(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readGT
in interface IsamSource
t
- type to findk
- key to find
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T,TK> IsamResult<T> readLE(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readLE
in interface IsamSource
t
- type to findk
- key to find
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic <T,TK> IsamResult<T> readLT(java.lang.Class<T> t, Key<TK> k) throws IsamException, RecordException
IsamSource
readLT
in interface IsamSource
t
- type to findk
- key to find
IsamException
- if problem with ISAM source
RecordException
- if problem converting datapublic double getHitRate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |