Class PrefixCodedTerms.TermIterator

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TermIterator​(long delGen, RAMFile buffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long delGen()
      Del gen of the current term.
      java.lang.String field()
      Returns current field.
      BytesRef next()
      Increments the iteration to the next BytesRef in the iterator.
      private void readTermBytes​(int prefix, int suffix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TermIterator

        private TermIterator​(long delGen,
                             RAMFile buffer)
    • 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()
        Description copied from class: FieldTermIterator
        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