Class QueryIteratorMapped

All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.io.Printable, org.apache.jena.atlas.iterator.IteratorCloseable<Binding>, org.apache.jena.atlas.lib.Closeable, QueryIterator, PrintSerializable

public class QueryIteratorMapped extends QueryIteratorWrapper
A query iterator which allows remapping variables to different names
  • Constructor Details

    • QueryIteratorMapped

      public QueryIteratorMapped(QueryIterator qIter, Map<Var,Var> varMapping)
      Creates a new iterator

      If the varMapping is null then no variable re-mapping will be applied and this will act as a simple wrapper over the underlying wrapper

      Parameters:
      qIter - Iterator to wrap
      varMapping - Variable mapping