Class PackedInts.Writer

java.lang.Object
org.apache.lucene.util.packed.PackedInts.Writer
Enclosing class:
PackedInts

public abstract static class PackedInts.Writer extends Object
A write-once Writer.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    add(long v)
    Add a value to the stream.
    final int
    The number of bits per value.
    abstract void
    Perform end-of-stream operations.
    abstract int
    ord()
    Returns the current ord in the stream (number of values that have been written so far minus one).

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • add

      public abstract void add(long v) throws IOException
      Add a value to the stream.
      Throws:
      IOException
    • bitsPerValue

      public final int bitsPerValue()
      The number of bits per value.
    • finish

      public abstract void finish() throws IOException
      Perform end-of-stream operations.
      Throws:
      IOException
    • ord

      public abstract int ord()
      Returns the current ord in the stream (number of values that have been written so far minus one).