Class EqualityDeleteRowReader

java.lang.Object
org.apache.iceberg.spark.source.EqualityDeleteRowReader
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>

public class EqualityDeleteRowReader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    EqualityDeleteRowReader(org.apache.iceberg.CombinedScanTask task, org.apache.iceberg.Table table, org.apache.iceberg.io.FileIO fileIO, org.apache.iceberg.Schema tableSchema, org.apache.iceberg.Schema expectedSchema, boolean caseSensitive, boolean cacheDeleteFilesOnExecutors)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    protected boolean
     
    void
     
    protected Map<Integer,?>
    constantsMap(org.apache.iceberg.ContentScanTask<?> task, org.apache.iceberg.Schema readSchema)
     
    protected org.apache.iceberg.deletes.DeleteCounter
     
    org.apache.spark.sql.connector.metric.CustomTaskMetric[]
     
    protected org.apache.iceberg.Schema
     
    org.apache.spark.sql.catalyst.InternalRow
    get()
     
    protected org.apache.iceberg.io.InputFile
    getInputFile(String location)
     
    protected org.apache.iceberg.mapping.NameMapping
     
    protected org.apache.iceberg.io.CloseableIterable<org.apache.spark.sql.catalyst.InternalRow>
    newIterable(org.apache.iceberg.io.InputFile file, org.apache.iceberg.FileFormat format, long start, long length, org.apache.iceberg.expressions.Expression residual, org.apache.iceberg.Schema projection, Map<Integer,?> idToConstant)
     
    boolean
     
    protected org.apache.iceberg.io.CloseableIterator<org.apache.spark.sql.catalyst.InternalRow>
    open(org.apache.iceberg.FileScanTask task)
     
    protected org.apache.iceberg.io.CloseableIterable<org.apache.spark.sql.catalyst.InternalRow>
    open(org.apache.iceberg.FileScanTask task, org.apache.iceberg.Schema readSchema, Map<Integer,?> idToConstant)
     
    protected Stream<org.apache.iceberg.ContentFile<?>>
    referencedFiles(org.apache.iceberg.FileScanTask task)
     
    protected org.apache.iceberg.Table
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface org.apache.spark.sql.connector.read.PartitionReader

    get, next
  • Constructor Details

    • EqualityDeleteRowReader

      public EqualityDeleteRowReader(org.apache.iceberg.CombinedScanTask task, org.apache.iceberg.Table table, org.apache.iceberg.io.FileIO fileIO, org.apache.iceberg.Schema tableSchema, org.apache.iceberg.Schema expectedSchema, boolean caseSensitive, boolean cacheDeleteFilesOnExecutors)
  • Method Details

    • open

      protected org.apache.iceberg.io.CloseableIterator<org.apache.spark.sql.catalyst.InternalRow> open(org.apache.iceberg.FileScanTask task)
    • currentMetricsValues

      public org.apache.spark.sql.connector.metric.CustomTaskMetric[] currentMetricsValues()
      Specified by:
      currentMetricsValues in interface org.apache.spark.sql.connector.read.PartitionReader<org.apache.spark.sql.catalyst.InternalRow>
    • referencedFiles

      protected Stream<org.apache.iceberg.ContentFile<?>> referencedFiles(org.apache.iceberg.FileScanTask task)
    • open

      protected org.apache.iceberg.io.CloseableIterable<org.apache.spark.sql.catalyst.InternalRow> open(org.apache.iceberg.FileScanTask task, org.apache.iceberg.Schema readSchema, Map<Integer,?> idToConstant)
    • newIterable

      protected org.apache.iceberg.io.CloseableIterable<org.apache.spark.sql.catalyst.InternalRow> newIterable(org.apache.iceberg.io.InputFile file, org.apache.iceberg.FileFormat format, long start, long length, org.apache.iceberg.expressions.Expression residual, org.apache.iceberg.Schema projection, Map<Integer,?> idToConstant)
    • expectedSchema

      protected org.apache.iceberg.Schema expectedSchema()
    • caseSensitive

      protected boolean caseSensitive()
    • cacheDeleteFilesOnExecutors

      protected boolean cacheDeleteFilesOnExecutors()
    • nameMapping

      protected org.apache.iceberg.mapping.NameMapping nameMapping()
    • table

      protected org.apache.iceberg.Table table()
    • counter

      protected org.apache.iceberg.deletes.DeleteCounter counter()
    • next

      public boolean next() throws IOException
      Throws:
      IOException
    • get

      public org.apache.spark.sql.catalyst.InternalRow get()
    • close

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

      protected org.apache.iceberg.io.InputFile getInputFile(String location)
    • constantsMap

      protected Map<Integer,?> constantsMap(org.apache.iceberg.ContentScanTask<?> task, org.apache.iceberg.Schema readSchema)