Class PrefixCodedTerms.TermIterator

    • Method Detail

      • next

        public BytesRef next()
        Description copied from interface: BytesRefIterator
        Increments the iteration to the next BytesRef in the iterator. Returns the resulting BytesRef or null if the end of the iterator is reached. The returned BytesRef may be re-used across calls to next. After this method returns null, do not call it again: the results are undefined.
        Returns:
        the next BytesRef in the iterator or null if the end of the iterator is reached.
      • readTermBytes

        private void readTermBytes​(int prefix,
                                   int suffix)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • field

        public java.lang.String field()
        Returns current field. This method should not be called after iteration is done. Note that you may use == to detect a change in field.
        Specified by:
        field in class FieldTermIterator