Package gorsat.spark
Class NativePartitionReader
- java.lang.Object
-
- gorsat.spark.NativePartitionReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
public class NativePartitionReader extends java.lang.Object implements org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
-
Constructor Summary
Constructors Constructor Description NativePartitionReader(org.apache.spark.sql.types.StructField[] fields, gorsat.spark.GorRangeInputPartition gorRangeInputPartition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.spark.sql.catalyst.InternalRowget()booleannext()voidupdateRow(int start, int last, int i)
-
-
-
Method Detail
-
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
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-