Class HnswGraph.ArrayNodesIterator

    • Constructor Detail

      • ArrayNodesIterator

        public ArrayNodesIterator​(int[] nodes,
                                  int size)
        Constructor for iterator based on integer array representing nodes
      • ArrayNodesIterator

        public ArrayNodesIterator​(int size)
        Constructor for iterator based on the size
    • Method Detail

      • consume

        public int consume​(int[] dest)
        Description copied from class: HnswGraph.NodesIterator
        Consume integers from the iterator and place them into the `dest` array.
        Specified by:
        consume in class HnswGraph.NodesIterator
        dest - where to put the integers
        The number of integers written to `dest`
      • nextInt

        public int nextInt()
      • hasNext

        public boolean hasNext()