Package gorsat.spark
Class GorPartitionReader
- java.lang.Object
-
- gorsat.spark.GorPartitionReader
-
- 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:
GorDoublePartitionReader,GorIntegerPartitionReader,GorLongPartitionReader,GorStringPartitionReader
public class GorPartitionReader extends java.lang.Object implements org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
-
Constructor Summary
Constructors Constructor Description GorPartitionReader(org.apache.spark.sql.types.StructType schema, gorsat.spark.GorRangeInputPartition gorRangeInputPartition, java.lang.String redisUri, java.lang.String jobId, java.lang.String projectRoot, java.lang.String cacheDir, java.lang.String configFile, java.lang.String aliasFile, java.lang.String securityContext, java.lang.String useCpp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.spark.sql.catalyst.InternalRowget()booleannext()
-
-
-
Constructor Detail
-
GorPartitionReader
public GorPartitionReader(org.apache.spark.sql.types.StructType schema, gorsat.spark.GorRangeInputPartition gorRangeInputPartition, java.lang.String redisUri, java.lang.String jobId, java.lang.String projectRoot, java.lang.String cacheDir, java.lang.String configFile, java.lang.String aliasFile, java.lang.String securityContext, java.lang.String useCpp)
-
-
Method Detail
-
next
public boolean next()
- Specified by:
nextin interfaceorg.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
-
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()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-