116117118119120121122123124
*/ public String evalString(QueryContext context) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.getString(_column); }
125126127128129130131132133
public int evalInt(QueryContext context) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.getInteger(_column); }
134135136137138139140141142
public long evalLong(QueryContext context) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.getLong(_column); }
143144145146147148149150151
public final double evalDouble(final QueryContext context) throws SQLException { final TableIterator []rows = context.getTableIterators(); final TableIterator row = rows[_tableIndex]; return row.getDouble(_column); }
153154155156157158159160161
@Override public int evalToBuffer(QueryContext context, byte []buffer, int offset) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.getBuffer(_column, buffer, offset); }
169170171172173174175176177
@Override public void evalToResult(QueryContext context, SelectResult result) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; row.evalToResult(_column, result); }
178179180181182183184185186
public boolean evalEqual(QueryContext context, byte []matchBuffer) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.isEqual(_column, matchBuffer); }
187188189190191192193194195
public boolean evalEqual(QueryContext context, String string) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return row.isEqual(_column, string); }
127128129130131132133134135
*/ public String evalString(QueryContext context) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return String.valueOf(row.getRowAddress()); }
136137138139140141142143144
public int evalInt(QueryContext context) throws SQLException { TableIterator []rows = context.getTableIterators(); TableIterator row = rows[_tableIndex]; return (int) row.getRowAddress(); }