Search in sources :

Example 1 with TableInput

use of org.pentaho.di.trans.steps.tableinput.TableInput in project pdi-dataservice-server-plugin by pentaho.

the class TableInputParameterGeneration method getSQL.

private String getSQL(StepInterface stepInterface) throws PushDownOptimizationException {
    TableInput tableInput;
    if (stepInterface instanceof TableInput) {
        tableInput = (TableInput) stepInterface;
    } else {
        throw new PushDownOptimizationException("Unable to push down to push down to type " + stepInterface.getClass());
    }
    final TableInputMeta tableInputMeta = (TableInputMeta) tableInput.getStepMeta().getStepMetaInterface();
    return tableInputMeta.getSQL();
}
Also used : TableInput(org.pentaho.di.trans.steps.tableinput.TableInput) PushDownOptimizationException(org.pentaho.di.trans.dataservice.optimization.PushDownOptimizationException) TableInputMeta(org.pentaho.di.trans.steps.tableinput.TableInputMeta)

Aggregations

PushDownOptimizationException (org.pentaho.di.trans.dataservice.optimization.PushDownOptimizationException)1 TableInput (org.pentaho.di.trans.steps.tableinput.TableInput)1 TableInputMeta (org.pentaho.di.trans.steps.tableinput.TableInputMeta)1