Class VeniceAbstractPartitionReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
    Direct Known Subclasses:
    VeniceHdfsInputPartitionReader

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

      • VeniceAbstractPartitionReader

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

      • createRecordIterator

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

        public boolean next()
                     throws java.io.IOException
        Specified by:
        next in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
        Throws:
        java.io.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 java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException