Class ValueIterator<CONCRETE extends ValueIterator<CONCRETE>>

    • Constructor Detail

      • ValueIterator

        protected ValueIterator​(Rebufferer source,
                                long root)
      • ValueIterator

        protected ValueIterator​(Rebufferer source,
                                long root,
                                boolean collecting)
      • ValueIterator

        protected ValueIterator​(Rebufferer source,
                                long root,
                                ByteComparable start,
                                ByteComparable end,
                                boolean admitPrefix,
                                boolean collecting)
        Constrained iterator. The end position is always treated as inclusive, and we have two possible treatments for the start:
        • When admitPrefix=false, exact matches and any prefixes of the start are excluded.
        • When admitPrefix=true, the longest prefix of the start present in the trie is also included, provided that there is no entry in the trie between that prefix and the start. An exact match also satisfies this and is included.
        This behaviour is shared with the reverse counterpart ReverseValueIterator.
    • Method Detail

      • peekNode

        protected long peekNode()
        Returns the payload node position without advancing.
      • nextPayloadedNode

        protected long nextPayloadedNode()
        Returns the position of the next node with payload contained in the iterated span.
      • advanceNode

        protected long advanceNode()