Class STBlockReader

    • Field Detail

      • fieldInfos

        protected final FieldInfos fieldInfos
    • Method Detail

      • next

        public BytesRef next()
                      throws java.io.IOException
        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.
        Specified by:
        next in interface BytesRefIterator
        Overrides:
        next in class BlockReader
        Returns:
        the next BytesRef in the iterator or null if the end of the iterator is reached.
        Throws:
        java.io.IOException - If there is a low-level I/O error.
      • termOccursInField

        private boolean termOccursInField()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • nextTerm

        protected BytesRef nextTerm()
                             throws java.io.IOException
        Moves to the next term line and reads it, whichever are the corresponding fields. The term details are not read yet. They will be read only when needed with BlockReader.readTermStateIfNotRead().
        Overrides:
        nextTerm in class BlockReader
        Returns:
        The read term bytes.
        Throws:
        java.io.IOException
      • seekCeil

        public TermsEnum.SeekStatus seekCeil​(BytesRef searchedTerm)
                                      throws java.io.IOException
        Description copied from class: TermsEnum
        Seeks to the specified term, if it exists, or to the next (ceiling) term. Returns SeekStatus to indicate whether exact term was found, a different term was found, or EOF was hit. The target term may be before or after the current term. If this returns SeekStatus.END, the enum is unpositioned.
        Overrides:
        seekCeil in class BlockReader
        Throws:
        java.io.IOException
      • seekCeilIgnoreField

        TermsEnum.SeekStatus seekCeilIgnoreField​(BytesRef searchedTerm)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • seekExact

        public boolean seekExact​(BytesRef searchedTerm)
                          throws java.io.IOException
        Description copied from class: TermsEnum
        Attempts to seek to the exact term, returning true if the term is found. If this returns false, the enum is unpositioned. For some codecs, seekExact may be substantially faster than TermsEnum.seekCeil(org.apache.lucene.util.BytesRef).
        Overrides:
        seekExact in class BlockReader
        Returns:
        true if the term is found; return false if the enum is unpositioned.
        Throws:
        java.io.IOException
      • isBeyondLastTerm

        protected boolean isBeyondLastTerm​(BytesRef searchedTerm,
                                           long blockStartFP)
        Description copied from class: BlockReader
        Indicates whether the searched term is beyond the last term of the field.
        Overrides:
        isBeyondLastTerm in class BlockReader
        blockStartFP - The current block start file pointer.