@Override protected PreparedResult createPreparedExplanation( RelDataType resultType, RelDataType parameterRowType, RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel) { return new CalcitePreparedExplain(resultType, parameterRowType, root, format, detailLevel); }
public Bindable getBindable(final Meta.CursorFactory cursorFactory) { final String explanation = getCode(); return new Bindable() { public Enumerable bind(DataContext dataContext) { switch (cursorFactory.style) { case ARRAY: return Linq4j.singletonEnumerable(new String[] {explanation}); case OBJECT: default: return Linq4j.singletonEnumerable(explanation); } } }; } }
public Bindable getBindable(final Meta.CursorFactory cursorFactory) { final String explanation = getCode(); return dataContext -> { switch (cursorFactory.style) { case ARRAY: return Linq4j.singletonEnumerable(new String[] {explanation}); case OBJECT: default: return Linq4j.singletonEnumerable(explanation); } }; } }
public Bindable getBindable(final Meta.CursorFactory cursorFactory) { final String explanation = getCode(); return dataContext -> { switch (cursorFactory.style) { case ARRAY: return Linq4j.singletonEnumerable(new String[] {explanation}); case OBJECT: default: return Linq4j.singletonEnumerable(explanation); } }; } }
@Override protected PreparedResult createPreparedExplanation( RelDataType resultType, RelDataType parameterRowType, RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel) { return new CalcitePreparedExplain(resultType, parameterRowType, root, format, detailLevel); }
@Override protected PreparedResult createPreparedExplanation( RelDataType resultType, RelDataType parameterRowType, RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel) { return new CalcitePreparedExplain(resultType, parameterRowType, root, format, detailLevel); }