Class RunLengthIntegerReader

java.lang.Object
org.apache.orc.impl.RunLengthIntegerReader
All Implemented Interfaces:
IntegerReader

public class RunLengthIntegerReader extends Object implements IntegerReader
A reader that reads a sequence of integers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RunLengthIntegerReader(InStream input, boolean signed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if there are any more values left.
    long
    Return the next available value.
    void
    nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int[] data, int size)
    Return the next available vector for values.
    void
    nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, int previousLen)
    Return the next available vector for values.
    void
    Seek to the position provided by index.
    void
    skip(long numValues)
    Skip number of specified rows.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • hasNext

      public boolean hasNext() throws IOException
      Description copied from interface: IntegerReader
      Check if there are any more values left.
      Specified by:
      hasNext in interface IntegerReader
      Returns:
      Throws:
      IOException
    • next

      public long next() throws IOException
      Description copied from interface: IntegerReader
      Return the next available value.
      Specified by:
      next in interface IntegerReader
      Returns:
      Throws:
      IOException
    • nextVector

      public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector previous, long[] data, int previousLen) throws IOException
      Description copied from interface: IntegerReader
      Return the next available vector for values.
      Specified by:
      nextVector in interface IntegerReader
      Parameters:
      previous - the column being read
      data - the vector to read into
      previousLen - the number of numbers to read
      Throws:
      IOException
    • nextVector

      public void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int[] data, int size) throws IOException
      Description copied from interface: IntegerReader
      Return the next available vector for values. Does not change the value of column.isRepeating.
      Specified by:
      nextVector in interface IntegerReader
      Parameters:
      vector - the column being read
      data - the vector to read into
      size - the number of numbers to read
      Throws:
      IOException
    • seek

      public void seek(PositionProvider index) throws IOException
      Description copied from interface: IntegerReader
      Seek to the position provided by index.
      Specified by:
      seek in interface IntegerReader
      Throws:
      IOException
    • skip

      public void skip(long numValues) throws IOException
      Description copied from interface: IntegerReader
      Skip number of specified rows.
      Specified by:
      skip in interface IntegerReader
      Throws:
      IOException