Package gorsat.spark

Class 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
      void close()  
      org.apache.spark.sql.catalyst.InternalRow get()  
      boolean next()  
      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 Detail

      • NativePartitionReader

        public NativePartitionReader​(org.apache.spark.sql.types.StructField[] fields,
                                     gorsat.spark.GorRangeInputPartition gorRangeInputPartition)
    • Method Detail

      • 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 java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException