Package db

Class ConstrainedForwardRecordIterator

java.lang.Object
db.ConstrainedForwardRecordIterator
All Implemented Interfaces:
RecordIterator

public class ConstrainedForwardRecordIterator extends Object implements RecordIterator
ConstrainedForwardRecordIterator provides the ability to both filter and translate records returned from an underlying RecordIterator.
  • Constructor Details

    • ConstrainedForwardRecordIterator

      public ConstrainedForwardRecordIterator(RecordIterator it, Function<DBRecord,DBRecord> recordPredicateAndTranslate)
      Construct a constrained/filtered record iterator.
      Parameters:
      it - source record iterator
      recordPredicateAndTranslate - function which enables both filtering of records (null returned if record should be skipped) and the ability to translate the record to an alternate table/record schema.
  • Method Details