Package org.pentaho.di.core
Class DBCache
java.lang.Object
org.pentaho.di.core.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.
- Since:
- 15-01-04
- Author:
- Matt
- 
Method SummaryModifier and TypeMethodDescriptionvoidClear out all entries of database with a certain nameget(DBCacheEntry entry) Get the fields as a row generated by a database cache entrystatic Stringstatic DBCacheCreate the database cache instance by loading it from diskbooleanisActive()voidput(DBCacheEntry entry, RowMetaInterface fields) voidvoidvoidsetActive(boolean act) voidintsize()
- 
Method Details- 
setActivepublic void setActive()
- 
setInactivepublic void setInactive()
- 
setActivepublic void setActive(boolean act) 
- 
isActivepublic boolean isActive()
- 
put
- 
getGet the fields as a row generated by a database cache entry- Parameters:
- entry- the entry to look for
- Returns:
- the fields as a row generated by a database cache entry
 
- 
sizepublic int size()
- 
clearClear out all entries of database with a certain name- Parameters:
- dbname- The name of the database for which we want to clear the cache or null if we want to clear it all.
 
- 
getFilename
- 
saveCache- Throws:
- KettleFileException
 
- 
getInstanceCreate the database cache instance by loading it from disk- Returns:
- the database cache instance.
 
 
-