Interface IntegerReader

All Known Implementing Classes:
RunLengthIntegerReader, RunLengthIntegerReaderV2

public interface IntegerReader
Interface for reading integers.
  • 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 column, int[] data, int length)
    Return the next available vector for values.
    void
    nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, long[] data, int length)
    Return the next available vector for values.
    void
    Seek to the position provided by index.
    void
    skip(long numValues)
    Skip number of specified rows.
  • Method Details

    • seek

      void seek(PositionProvider index) throws IOException
      Seek to the position provided by index.
      Parameters:
      index -
      Throws:
      IOException
    • skip

      void skip(long numValues) throws IOException
      Skip number of specified rows.
      Parameters:
      numValues -
      Throws:
      IOException
    • hasNext

      boolean hasNext() throws IOException
      Check if there are any more values left.
      Returns:
      Throws:
      IOException
    • next

      long next() throws IOException
      Return the next available value.
      Returns:
      Throws:
      IOException
    • nextVector

      void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, long[] data, int length) throws IOException
      Return the next available vector for values.
      Parameters:
      column - the column being read
      data - the vector to read into
      length - the number of numbers to read
      Throws:
      IOException
    • nextVector

      void nextVector(org.apache.hadoop.hive.ql.exec.vector.ColumnVector column, int[] data, int length) throws IOException
      Return the next available vector for values. Does not change the value of column.isRepeating.
      Parameters:
      column - the column being read
      data - the vector to read into
      length - the number of numbers to read
      Throws:
      IOException