ResourceIterator (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb

## Interface ResourceIterator<T>

- Type Parameters:
    `T` - type of values returned by this Iterator
  All Superinterfaces:
    AutoCloseable, Iterator<T>, Resource
  All Known Subinterfaces:
    IndexHits<T>
  All Known Implementing Classes:
    CombiningResourceIterator, PrefetchingResourceIterator, ResourceClosingIterator

      public interface ResourceIterator<T>
      extends Iterator<T>, Resource

  Closeable Iterator with associated resources. The associated resources are always released when the owning transaction is committed or rolled back. The resource may also be released eagerly by explicitly calling `close()` or by exhausting the iterator.
  See Also:
    `ResourceIterable`, `Transaction`

- - ### Field Summary

    - ### Fields inherited from interface org.neo4j.graphdb.Resource

      `EMPTY`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Close the iterator early, freeing associated resources It is an error to use the iterator after this has been called.

    - ### Methods inherited from interface java.util.Iterator

      `hasNext, next, remove`

- - ### Method Detail

    - #### close

          void close()

      Close the iterator early, freeing associated resources It is an error to use the iterator after this has been called.
      Specified by:
        `close` in interface `AutoCloseable`
      Specified by:
        `close` in interface `Resource`

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.