Class PostingsEnum

    • Constructor Detail

      • PostingsEnum

        protected PostingsEnum()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • Method Detail

      • featureRequested

        public static boolean featureRequested​(int flags,
                                               short feature)
        Returns true if the given feature is requested in the flags, false otherwise.
      • nextPosition

        public abstract int nextPosition()
                                  throws java.io.IOException
        Returns the next position, or -1 if positions were not indexed. Calling this more than freq() times is undefined.
        Throws:
        java.io.IOException
      • startOffset

        public abstract int startOffset()
                                 throws java.io.IOException
        Returns start offset for the current position, or -1 if offsets were not indexed.
        Throws:
        java.io.IOException
      • endOffset

        public abstract int endOffset()
                               throws java.io.IOException
        Returns end offset for the current position, or -1 if offsets were not indexed.
        Throws:
        java.io.IOException
      • getPayload

        public abstract BytesRef getPayload()
                                     throws java.io.IOException
        Returns the payload at this position, or null if no payload was indexed. You should not modify anything (neither members of the returned BytesRef nor bytes in the byte[]).
        Throws:
        java.io.IOException