Package gorsat.spark
Class NativePartitionReader
java.lang.Object
gorsat.spark.NativePartitionReader
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
public class NativePartitionReader
extends Object
implements org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
Constructor Summary
ConstructorsConstructorDescriptionNativePartitionReader(org.apache.spark.sql.types.StructField[] fields, gorsat.spark.GorRangeInputPartition gorRangeInputPartition) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.read.PartitionReader
currentMetricsValues
-
Constructor Details
-
NativePartitionReader
public NativePartitionReader(org.apache.spark.sql.types.StructField[] fields, gorsat.spark.GorRangeInputPartition gorRangeInputPartition)
-
-
Method Details
-
next
public boolean next()- Specified by:
nextin interfaceorg.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
updateRow
public void updateRow(int start, int last, int i) -
get
public org.apache.spark.sql.catalyst.InternalRow get()- Specified by:
getin interfaceorg.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-