|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.DBCache
public class DBCache
This class caches database queries so that the same query doesn't get called twice. Queries are often launched to the databases to get information on tables etc.
Method Summary | |
---|---|
void |
clear(String dbname)
Clear out all entries of database with a certain name |
RowMetaInterface |
get(DBCacheEntry entry)
Get the fields as a row generated by a database cache entry |
String |
getFilename()
|
static DBCache |
getInstance()
Create the database cache instance by loading it from disk |
boolean |
isActive()
|
void |
put(DBCacheEntry entry,
RowMetaInterface fields)
|
void |
saveCache()
|
void |
setActive()
|
void |
setActive(boolean act)
|
void |
setInactive()
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setActive()
public void setInactive()
public void setActive(boolean act)
public boolean isActive()
public void put(DBCacheEntry entry, RowMetaInterface fields)
public RowMetaInterface get(DBCacheEntry entry)
entry
- the entry to look for
public int size()
public void clear(String dbname)
dbname
- The name of the database for which we want to clear the cache or null if we want to clear it all.public String getFilename()
public void saveCache() throws KettleFileException
KettleFileException
public static final DBCache getInstance()
KettleFileException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |