Package org.apache.iceberg.spark.source
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>
-
Constructor Summary
ConstructorsConstructorDescriptionEqualityDeleteRowReader(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 TypeMethodDescriptionprotected booleanprotected booleanvoidclose()constantsMap(org.apache.iceberg.ContentScanTask<?> task, org.apache.iceberg.Schema readSchema) protected org.apache.iceberg.deletes.DeleteCountercounter()org.apache.spark.sql.connector.metric.CustomTaskMetric[]protected org.apache.iceberg.Schemaorg.apache.spark.sql.catalyst.InternalRowget()protected org.apache.iceberg.io.InputFilegetInputFile(String location) protected org.apache.iceberg.mapping.NameMappingprotected 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) booleannext()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.Tabletable()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
currentMetricsValuesin interfaceorg.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
-
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
- Throws:
IOException
-
get
public org.apache.spark.sql.catalyst.InternalRow get() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getInputFile
-
constantsMap
-