93949596979899100101102103
if (_rows.length < fromItems.length) _rows = new TableIterator[fromItems.length]; for (int i = 0; i < fromItems.length; i++) { if (_rows[i] == null) _rows[i] = new TableIterator(); _rows[i].init(fromItems[i].getTable()); } return _rows; }
106107108109110111112113114115116
102103104105106107108109110111112
123124125126127128129130131
@Override public boolean isNull(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; return row.isNull(getColumn()); }
135136137138139140141142143
*/ public String evalString(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; return row.getString(getColumn()); }
147148149150151152153154155156157158159
*/ public int evalBoolean(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; final String value = row.getString(getColumn()); if (value == null) return UNKNOWN; else if (value.equals("1")) return TRUE;
167168169170171172173174175
public int evalInt(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; return row.getInteger(getColumn()); }
177178179180181182183184185
@Override public long evalLong(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; return row.getLong(getColumn()); }
187188189190191192193194195
@Override public double evalDouble(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; return row.getDouble(getColumn()); }
204205206207208209210211212
public void evalToResult(final QueryContext context, final SelectResult result) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[getTableIndex()]; row.evalToResult(getColumn(), result); }