Package org.apache.maven.index
Interface IteratorResultSet
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,java.lang.Iterable<ArtifactInfo>
,java.util.Iterator<ArtifactInfo>
- All Known Implementing Classes:
DefaultIteratorResultSet
public interface IteratorResultSet extends java.util.Iterator<ArtifactInfo>, java.lang.Iterable<ArtifactInfo>, java.io.Closeable
IteratorResultSet, that returns the result hit's in "iterator-like fashion", instead lifting all the hits into memory (and bashing IO and RAM consumption). This makes search making client memory usage thin, and makes possible to implement things like "streaming" results etc. The result set is java.util.Iterator, but is made also java.lang.Iterable to make it possible to take part in operations like "for-each", but it will usually return itself as Iterator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getTotalProcessedArtifactInfoCount()
Returns the up-to-date number of the actual number of loaded Lucene Documents that were converted into ArtifactInfo object until last next() invocation.
-
-
-
Method Detail
-
getTotalProcessedArtifactInfoCount
int getTotalProcessedArtifactInfoCount()
Returns the up-to-date number of the actual number of loaded Lucene Documents that were converted into ArtifactInfo object until last next() invocation. Warning: this method will return ALL touched/loaded document count, even those that are filtered out and NOT returned by iterator's next() method!- Returns:
- total number of processed ArtifactInfos so far
-
-