Class DocIdStream

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DocIdStream()
      Sole constructor, for invocation by sub classes.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int count()
      Count the number of entries in this stream.
      abstract void forEach​(CheckedIntConsumer<java.io.IOException> consumer)
      Iterate over doc IDs contained in this stream in order, calling the given CheckedIntConsumer on them.
      • Methods inherited from class java.lang.Object

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

      • DocIdStream

        protected DocIdStream()
        Sole constructor, for invocation by sub classes.
    • Method Detail

      • forEach

        public abstract void forEach​(CheckedIntConsumer<java.io.IOException> consumer)
                              throws java.io.IOException
        Iterate over doc IDs contained in this stream in order, calling the given CheckedIntConsumer on them. This is a terminal operation.
        Throws:
        java.io.IOException
      • count

        public int count()
                  throws java.io.IOException
        Count the number of entries in this stream. This is a terminal operation.
        Throws:
        java.io.IOException