test_class.file: culvert-main/src/test/java/com/bah/culvert/constraints/filter/FilteredConstraintTest.java
test_class.identifier: FilteredConstraintTest
test_case.body: @Test
    public void testGetResultIterator() {
      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));
  
      FilteredConstraint filter = new FilteredConstraint(new ResultFilter(table),
          new Filter());
  
      Utils.testResultIterator(filter.getResultIterator(), 3, 3);
  
      // test the other methods not covered by simple counting
      SeekingCurrentIterator iter = filter.getResultIterator();
      assertTrue(iter.current() == null);
      iter.seek(new byte[] { 2 });
      assertTrue(iter.current() != null);
      assertTrue(iter.hasNext());
      assertArrayEquals(new byte[] { 3 }, iter.next().getRecordId());
  
      filter = new FilteredConstraint(new ResultFilter(table),
          new AcceptNoneFilter());
  
      Utils.testResultIterator(filter.getResultIterator(), 0, 0);
    }
test_case.class_method_signature: FilteredConstraintTest.testGetResultIterator()
test_case.full_signature: @Test public void testGetResultIterator()
test_case.identifier: testGetResultIterator
test_case.invocations: add add add put testResultIterator getResultIterator getResultIterator assertTrue current seek assertTrue current assertTrue hasNext assertArrayEquals getRecordId next testResultIterator getResultIterator
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResultIterator()
focal_class.declarator: subconstraint
focal_class.modifier: private
focal_class.original_string: private Constraint subconstraint;
focal_class.type: Constraint
focal_class.var_name: subconstraint
focal_class.declarator: filter
focal_class.modifier: private
focal_class.original_string: private Filter filter;
focal_class.type: Filter
focal_class.var_name: filter
focal_class.file: culvert-main/src/main/java/com/bah/culvert/constraints/filter/FilteredConstraint.java
focal_class.identifier: FilteredConstraint
focal_class.class_method_signature: FilteredConstraint.FilteredConstraint()
focal_class.full_signature: public  FilteredConstraint()
focal_class.identifier: FilteredConstraint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  FilteredConstraint()
focal_class.class_method_signature: FilteredConstraint.FilteredConstraint(Constraint subconstraint, Filter filter)
focal_class.full_signature: public  FilteredConstraint(Constraint subconstraint, Filter filter)
focal_class.identifier: FilteredConstraint
focal_class.modifiers: public
focal_class.parameters: (Constraint subconstraint, Filter filter)
focal_class.signature:  FilteredConstraint(Constraint subconstraint, Filter filter)
focal_class.class_method_signature: FilteredConstraint.readFields(DataInput in)
focal_class.full_signature: @Override public void readFields(DataInput in)
focal_class.identifier: readFields
focal_class.modifiers: @Override public
focal_class.parameters: (DataInput in)
focal_class.return: void
focal_class.signature: void readFields(DataInput in)
focal_class.class_method_signature: FilteredConstraint.write(DataOutput out)
focal_class.full_signature: @Override public void write(DataOutput out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataOutput out)
focal_class.return: void
focal_class.signature: void write(DataOutput out)
focal_class.class_method_signature: FilteredConstraint.getResultIterator()
focal_class.full_signature: @Override public SeekingCurrentIterator getResultIterator()
focal_class.identifier: getResultIterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SeekingCurrentIterator
focal_class.signature: SeekingCurrentIterator getResultIterator()
focal_class.superclass: extends Constraint
focal_method.body: @Override
    public SeekingCurrentIterator getResultIterator() {
      return new FilteringIterator(this.subconstraint.getResultIterator(),
          this.filter);
    }
focal_method.class_method_signature: FilteredConstraint.getResultIterator()
focal_method.full_signature: @Override public SeekingCurrentIterator getResultIterator()
focal_method.identifier: getResultIterator
focal_method.invocations: getResultIterator
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: SeekingCurrentIterator
focal_method.signature: SeekingCurrentIterator getResultIterator()