Interface DatabaseLookupData.Cache

    • 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 or null if none has been found. Note, cache should keep the order in which elements were put into it.
        Parameters:
        lookupMeta - meta object for dealing with lookupRow
        lookupRow - 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)
        Saved add as data row and lookupRow as a key for searching it.
        Parameters:
        meta - step's meta
        lookupMeta - lookupRow's meta
        lookupRow - tuple of keys
        add - tuple of data