Package org.apache.iceberg
Class ManifestReader<F extends ContentFile<F>>
java.lang.Object
org.apache.iceberg.io.CloseableGroup
org.apache.iceberg.ManifestReader<F>
- Type Parameters:
F
- The Java class of files returned by this reader.
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<F>
,CloseableIterable<F>
public class ManifestReader<F extends ContentFile<F>>
extends CloseableGroup
implements CloseableIterable<F>
Base reader for data and delete manifest files.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E>
-
Constructor Summary
ModifierConstructorDescriptionprotected
ManifestReader
(InputFile file, int specId, Map<Integer, PartitionSpec> specsById, org.apache.iceberg.InheritableMetadata inheritableMetadata, ManifestReader.FileType content) -
Method Summary
Modifier and TypeMethodDescriptioncaseSensitive
(boolean isCaseSensitive) file()
filterPartitions
(Expression expr) filterPartitions
(PartitionSet partitions) filterRows
(Expression expr) boolean
iterator()
Returns a closeable iterator over elements of typeT
.schema()
select
(Collection<String> newColumns) spec()
Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, close, setSuppressCloseFailure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ManifestReader
protected ManifestReader(InputFile file, int specId, Map<Integer, PartitionSpec> specsById, org.apache.iceberg.InheritableMetadata inheritableMetadata, ManifestReader.FileType content)
-
-
Method Details
-
isDeleteManifestReader
public boolean isDeleteManifestReader() -
file
-
schema
-
spec
-
select
-
project
-
filterPartitions
-
filterPartitions
-
filterRows
-
caseSensitive
-
iterator
Description copied from interface:CloseableIterable
Returns a closeable iterator over elements of typeT
.- Specified by:
iterator
in interfaceCloseableIterable<F extends ContentFile<F>>
- Specified by:
iterator
in interfaceIterable<F extends ContentFile<F>>
- Returns:
- an Iterator of DataFile. Makes defensive copies of files before returning
-