Package gorsat.spark

Class GorStringPartitionReader

java.lang.Object
gorsat.spark.GorPartitionReader
gorsat.spark.GorStringPartitionReader
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>

public class GorStringPartitionReader
extends GorPartitionReader
  • Constructor Summary

    Constructors 
    Constructor Description
    GorStringPartitionReader​(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 useCpp)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    org.apache.spark.sql.catalyst.InternalRow get()  
    boolean next()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GorStringPartitionReader

      public GorStringPartitionReader​(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 useCpp)
  • Method Details

    • next

      public boolean next()
      Specified by:
      next in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
      Overrides:
      next in class GorPartitionReader
    • 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>
      Overrides:
      get in class GorPartitionReader
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class GorPartitionReader