Class OrcStripeReader

java.lang.Object
org.apache.arrow.vector.ipc.ArrowReader
org.apache.arrow.adapter.orc.OrcStripeReader
All Implemented Interfaces:
AutoCloseable, DictionaryProvider

public class OrcStripeReader extends ArrowReader
Orc stripe that load data into ArrowRecordBatch.
  • Method Details

    • loadNextBatch

      public boolean loadNextBatch() throws IOException
      Description copied from class: ArrowReader
      Load the next ArrowRecordBatch to the vector schema root if available.
      Specified by:
      loadNextBatch in class ArrowReader
      Returns:
      true if a batch was read, false on EOS
      Throws:
      IOException - on error
    • bytesRead

      public long bytesRead()
      Description copied from class: ArrowReader
      Return the number of bytes read from the ReadChannel.
      Specified by:
      bytesRead in class ArrowReader
      Returns:
      number of bytes read
    • closeReadSource

      protected void closeReadSource() throws IOException
      Description copied from class: ArrowReader
      Close the underlying read source.
      Specified by:
      closeReadSource in class ArrowReader
      Throws:
      IOException - on error
    • readSchema

      protected Schema readSchema() throws IOException
      Description copied from class: ArrowReader
      Read the Schema from the source, will be invoked at the beginning the initialization.
      Specified by:
      readSchema in class ArrowReader
      Returns:
      the read Schema
      Throws:
      IOException - on error