Class VeniceAbstractPartitionReader

java.lang.Object
com.linkedin.venice.spark.input.VeniceAbstractPartitionReader
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
Direct Known Subclasses:
VeniceHdfsInputPartitionReader

public abstract class VeniceAbstractPartitionReader extends Object implements org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
  • Constructor Details

    • VeniceAbstractPartitionReader

      public VeniceAbstractPartitionReader(VeniceProperties jobConfig, org.apache.spark.sql.connector.read.InputPartition partition)
  • Method Details

    • createRecordIterator

      protected abstract VeniceRecordIterator createRecordIterator(VeniceProperties jobConfig, org.apache.spark.sql.connector.read.InputPartition partition)
    • next

      public boolean next() throws IOException
      Specified by:
      next in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
      Throws:
      IOException
    • get

      public org.apache.spark.sql.catalyst.InternalRow get()
      Specified by:
      get in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException