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

    Constructors
    Constructor
    Description
    NativePartitionReader(org.apache.spark.sql.types.StructField[] fields, gorsat.spark.GorRangeInputPartition gorRangeInputPartition)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.spark.sql.catalyst.InternalRow
    get()
     
    boolean
     
    void
    updateRow(int start, int last, int i)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      next in interface org.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:
      get in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException