Package org.apache.lucene.util.hnsw
Class HnswGraph.ArrayNodesIterator
- java.lang.Object
- 
- org.apache.lucene.util.hnsw.HnswGraph.NodesIterator
- 
- org.apache.lucene.util.hnsw.HnswGraph.ArrayNodesIterator
 
 
- 
- All Implemented Interfaces:
- Iterator<Integer>,- PrimitiveIterator<Integer,IntConsumer>,- PrimitiveIterator.OfInt
 - Enclosing class:
- HnswGraph
 
 public static class HnswGraph.ArrayNodesIterator extends HnswGraph.NodesIterator NodesIterator that accepts nodes as an integer array.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface java.util.PrimitiveIteratorPrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.lucene.util.hnsw.HnswGraph.NodesIteratorsize
 
- 
 - 
Constructor SummaryConstructors Constructor Description ArrayNodesIterator(int size)Constructor for iterator based on the sizeArrayNodesIterator(int[] nodes, int size)Constructor for iterator based on integer array representing nodes
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intconsume(int[] dest)Consume integers from the iterator and place them into the `dest` array.booleanhasNext()intnextInt()- 
Methods inherited from class org.apache.lucene.util.hnsw.HnswGraph.NodesIteratorgetSortedNodes, size
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.PrimitiveIterator.OfIntforEachRemaining, forEachRemaining, next
 
- 
 
- 
- 
- 
Method Detail- 
consumepublic int consume(int[] dest) Description copied from class:HnswGraph.NodesIteratorConsume integers from the iterator and place them into the `dest` array.- Specified by:
- consumein class- HnswGraph.NodesIterator
- Parameters:
- dest- where to put the integers
- Returns:
- The number of integers written to `dest`
 
 - 
nextIntpublic int nextInt() 
 - 
hasNextpublic boolean hasNext() 
 
- 
 
-