Class HnswGraph.NodesIterator

    • Constructor Detail

      • NodesIterator

        public NodesIterator​(int[] nodes,
                             int size)
        Constructor for iterator based on the nodes array up to the size
      • NodesIterator

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

      • consume

        public int consume​(int[] dest)
        Consume integers from the iterator and place them into the `dest` array.
        dest - where to put the integers
        The number of integers written to `dest`
      • size

        public int size()
        The number of elements in this iterator *