Interface DatabaseLookupData.Cache
-
- All Known Implementing Classes:
DefaultCache,ReadAllCache
- Enclosing class:
- DatabaseLookupData
public static interface DatabaseLookupData.CacheCache forDatabaseLookupstep.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getRowFromCache(org.pentaho.di.core.row.RowMetaInterface lookupMeta, Object[] lookupRow)Returns the very first data row that matches all conditions ornullif none has been found.voidstoreRowInCache(DatabaseLookupMeta meta, org.pentaho.di.core.row.RowMetaInterface lookupMeta, Object[] lookupRow, Object[] add)Savedaddas data row andlookupRowas a key for searching it.
-
-
-
Method Detail
-
getRowFromCache
Object[] getRowFromCache(org.pentaho.di.core.row.RowMetaInterface lookupMeta, Object[] lookupRow) throws org.pentaho.di.core.exception.KettleException
Returns the very first data row that matches all conditions ornullif none has been found. Note, cache should keep the order in which elements were put into it.- Parameters:
lookupMeta- meta object for dealing withlookupRowlookupRow- tuple containing values for comparison- Returns:
- first matching data row or
null - Throws:
org.pentaho.di.core.exception.KettleException
-
storeRowInCache
void storeRowInCache(DatabaseLookupMeta meta, org.pentaho.di.core.row.RowMetaInterface lookupMeta, Object[] lookupRow, Object[] add)
Savedaddas data row andlookupRowas a key for searching it.- Parameters:
meta- step's metalookupMeta-lookupRow's metalookupRow- tuple of keysadd- tuple of data
-
-