Class TinkerGraphIterator<E>

  • All Implemented Interfaces:
    AutoCloseable, Iterator<E>, CloseableIterator<E>

    public class TinkerGraphIterator<E>
    extends Object
    implements CloseableIterator<E>
    Wrapper on top of Iterator representing a closable resource to the underlying storage. This class also serves as a reference on how the providers can maintain a counter of the underlying storage resources in their implementation. This counter in coordination with gremlin-test suite can be used to detect cases when the query processor does not gracefully release the underlying resources.