Neo4j

Package org.neo4j.helpers.collection

Collections utilities - Iterator/Iterable utilities and creating Maps.

See:
          Description

Interface Summary
ClosableIterable<T>  
ClosableIterator<T>  
Visitable<T>  
Visitor<E> A visitor to internalize iteration.
 

Class Summary
ArrayIterator<T>  
CachingIterator<T> An Iterator which lazily fetches and caches items from the underlying iterator when items are requested.
CatchingIteratorWrapper<T,U>  
CollectionWrapper<T,U> Wraps a Collection, making it look (and function) like a collection holding another type of items.
CombiningIterable<T> Combining one or more Iterables, making them look like they were one big iterable.
CombiningIterator<T> Combining one or more Iterators, making them look like they were one big iterator.
ExceptionHandlingIterable<T> allows to catch, analyse and react on exceptions that are thrown by the inner iterable useful for exception conversion on iterator methods Uses sun.misc.Unsafe internally to rethrow original exceptions !
FilteringIterable<T> An iterable which filters another iterable, only letting items with certain criterias pass through.
FilteringIterator<T> An iterator which filters another iterator, only letting items with certain criterias pass through.
FirstItemIterable<T> Wraps the given iterator but keeps the first item to allow later access to it, like CachingIterator but with less memory overhead.
Iterables TODO
IterableWrapper<T,U> Wraps an Iterable so that it returns items of another type.
IteratorUtil Contains common functionality regarding Iterators and Iterables.
IteratorWrapper<T,U> Wraps an Iterator so that it returns items of another type.
LimitingIterable<T> Limits the amount of items returned by an Iterable, or rather Iterators spawned from it.
LimitingIterator<T> Limits the amount of items returned by an Iterator.
LinesOfFileIterator  
MapUtil Utility to create Maps.
NestingIterable<T,U> Concatenates sub-iterables of an iterable.
NestingIterator<T,U> Concatenates sub-iterators of an iterator.
PagingIterator<T> A CachingIterator which can more easily divide the items into pages, where optionally each page can be seen as its own Iterator instance for convenience using PagingIterator.nextPage().
PositionedIterator<T> Decorator class that wraps any iterator and remembers the current node.
PrefetchingIterator<T> Abstract class for how you usually implement iterators when you don't know how many objects there are (which is pretty much every time) Basically the PrefetchingIterator.hasNext() method will look up the next object and cache it with PrefetchingIterator.setPrefetchedNext(Object).
RangeIterator Iterates over a range, where the start value is inclusive, but the end value is exclusive.
ReverseArrayIterator<T>  
 

Package org.neo4j.helpers.collection Description

Collections utilities - Iterator/Iterable utilities and creating Maps.


Neo4j

Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.