Package com.linkedin.venice.spark.input
Class VeniceAbstractPartitionReader
- java.lang.Object
-
- com.linkedin.venice.spark.input.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 Summary
Constructors Constructor Description VeniceAbstractPartitionReader(VeniceProperties jobConfig, org.apache.spark.sql.connector.read.InputPartition partition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected abstract VeniceRecordIterator
createRecordIterator(VeniceProperties jobConfig, org.apache.spark.sql.connector.read.InputPartition partition)
org.apache.spark.sql.catalyst.InternalRow
get()
boolean
next()
-
-
-
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 interfaceorg.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 interfaceorg.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-