/** * Gets an iterator over the row id of this table matching the given * predicate. * @param pred an obvious predicate * @return an iterator over the rows of this table. */ public IntIterator rowIterator(Predicate pred) { return new FilterIntIterator(this, pred); }
/** * Constructor. * @param inTuple obvious tuple to wrap */ public WrapToPrefTuple(TupleImpl inTuple) { this.tuple = inTuple; this.rowId = inTuple.getRow(); }
@SuppressWarnings("unchecked") @Override public boolean canSet(String arg0, Class arg1) { return tuple.canSet(arg0, arg1); }
@Override public boolean canSetBoolean(String arg0) { return tuple.canSetBoolean(arg0); }
@Override public Object get(String arg0) { return tuple.get(arg0); }
@Override public Date getDate(String arg0) { return tuple.getDate(arg0); }
@Override public double getDouble(String arg0) { return tuple.getDouble(arg0); }
@Override public void setInt(String arg0, int arg1) { tuple.setInt(arg0, arg1); }
@SuppressWarnings("unchecked") @Override public boolean canGet(String field, Class type) { return tuple.canGet(field, type); }
@Override public boolean canGetBoolean(String arg0) { return tuple.canGetBoolean(arg0); }
@Override public boolean canGetDate(String arg0) { return tuple.canGetDate(arg0); }
@Override public boolean canGetDouble(String arg0) { return tuple.canGetDouble(arg0); }
@Override public boolean canGetLong(String arg0) { return tuple.canGetLong(arg0); }
@Override public boolean canSetLong(String arg0) { return tuple.canSetLong(arg0); }
@Override public void set(String arg0, Object arg1) { tuple.set(arg0, arg1); }
@Override public void setFloat(String arg0, float arg1) { tuple.setFloat(arg0, arg1); }
@Override public void setLong(String arg0, long arg1) { tuple.setLong(arg0, arg1); }
@Override public void setString(String arg0, String arg1) { tuple.setString(arg0, arg1); }
/** * Gets an iterator over the row id of this table matching the given * predicate. * @param pred an obvious predicate * @return an iterator over the rows of this table. */ public IntIterator rowIterator(Predicate pred) { return new FilterIntIterator(this, pred); }
/** * Gets an iterator over the row id of this table matching the given * predicate. * @param pred an obvious predicate * @return an iterator over the rows of this table. */ public IntIterator rowIterator(Predicate pred) { return new FilterIntIterator(this, pred); }