@Test public void selectStar() throws Exception { TableAdapter table = new InMemoryTable(); List<CKeyValue> values = new ArrayList<CKeyValue>(); values.add(new CKeyValue(new byte[] { 1 })); values.add(new CKeyValue(new byte[] { 2 }, new byte[] { 3 }, new byte[] { 4 })); values.add(new CKeyValue(new byte[] { 3 }, new byte[] { 4 }, new byte[] { 5 }, 0, new byte[] { 6 })); table.put(new Put(values)); ResultFilter selectStar = new ResultFilter(table); Iterator<Result> results = selectStar.getResultIterator(); assertCount(results, 3); assertSeek(selectStar.getResultIterator(), new byte[] { 2 }, true, 1, new byte[0], new byte[] { 6 }); }
@Override public SeekingCurrentIterator getResultIterator() { SeekingCurrentIterator results; if (this.subConstraint == null) { Get get = new Get(this.range); for (CColumn column : this.columns) get.addColumn(column.getColumnFamily(), column.getColumnQualifier()); results = table.get(get); } else results = this.subConstraint.getResultIterator(); if (this.columns == null || this.columns.length == 0) return results; return new FilteringIterator(this.columns, results); }
ResultFilter extends Constraint { @Override public SeekingCurrentIterator getResultIterator() { SeekingCurrentIterator results; if (this.subConstraint == null) { Get get = new Get(this.range); for (CColumn column : this.columns) get.addColumn(column.getColumnFamily(), column.getColumnQualifier()); results = table.get(get); } else results = this.subConstraint.getResultIterator(); if (this.columns == null || this.columns.length == 0) return results; return new FilteringIterator(this.columns, results); } }
ResultFilter extends Constraint { @Override public SeekingCurrentIterator getResultIterator() { SeekingCurrentIterator results; if (this.subConstraint == null) { Get get = new Get(this.range); for (CColumn column : this.columns) get.addColumn(column.getColumnFamily(), column.getColumnQualifier()); results = table.get(get); } else results = this.subConstraint.getResultIterator(); if (this.columns == null || this.columns.length == 0) return results; return new FilteringIterator(this.columns, results); } ResultFilter();  ResultFilter(Constraint subConstraint, CRange range,
      CColumn... columns);  ResultFilter(TableAdapter primaryTable, CRange range,
      CColumn... columns);  ResultFilter(CRange range, Constraint subConstraint);  ResultFilter(TableAdapter primaryTable, CRange range);  ResultFilter(Constraint subConstraint, CColumn... columns);  ResultFilter(TableAdapter primaryTable, CColumn... columns);  ResultFilter(TableAdapter primaryTable); }
ResultFilter extends Constraint { @Override public SeekingCurrentIterator getResultIterator() { SeekingCurrentIterator results; if (this.subConstraint == null) { Get get = new Get(this.range); for (CColumn column : this.columns) get.addColumn(column.getColumnFamily(), column.getColumnQualifier()); results = table.get(get); } else results = this.subConstraint.getResultIterator(); if (this.columns == null || this.columns.length == 0) return results; return new FilteringIterator(this.columns, results); } ResultFilter();  ResultFilter(Constraint subConstraint, CRange range,
      CColumn... columns);  ResultFilter(TableAdapter primaryTable, CRange range,
      CColumn... columns);  ResultFilter(CRange range, Constraint subConstraint);  ResultFilter(TableAdapter primaryTable, CRange range);  ResultFilter(Constraint subConstraint, CColumn... columns);  ResultFilter(TableAdapter primaryTable, CColumn... columns);  ResultFilter(TableAdapter primaryTable); @Override boolean equals(Object compareto); @Override int hashCode(); @Override String toString(); @Override SeekingCurrentIterator getResultIterator(); @Override void readFields(DataInput in); @Override void write(DataOutput out); }
ResultFilter extends Constraint { @Override public SeekingCurrentIterator getResultIterator() { SeekingCurrentIterator results; if (this.subConstraint == null) { Get get = new Get(this.range); for (CColumn column : this.columns) get.addColumn(column.getColumnFamily(), column.getColumnQualifier()); results = table.get(get); } else results = this.subConstraint.getResultIterator(); if (this.columns == null || this.columns.length == 0) return results; return new FilteringIterator(this.columns, results); } ResultFilter();  ResultFilter(Constraint subConstraint, CRange range,
      CColumn... columns);  ResultFilter(TableAdapter primaryTable, CRange range,
      CColumn... columns);  ResultFilter(CRange range, Constraint subConstraint);  ResultFilter(TableAdapter primaryTable, CRange range);  ResultFilter(Constraint subConstraint, CColumn... columns);  ResultFilter(TableAdapter primaryTable, CColumn... columns);  ResultFilter(TableAdapter primaryTable); @Override boolean equals(Object compareto); @Override int hashCode(); @Override String toString(); @Override SeekingCurrentIterator getResultIterator(); @Override void readFields(DataInput in); @Override void write(DataOutput out);  }