public interface DeltaScan
Typically created with a read predicate Expression
to let users filter files. Please note
filtering is only supported on partition columns and users should use
getResidualPredicate()
to check for any unapplied portion of the input
predicate.
Modifier and Type | Method and Description |
---|---|
CloseableIterator<AddFile> |
getFiles()
Creates a
CloseableIterator over files belonging to this snapshot. |
java.util.Optional<Expression> |
getInputPredicate() |
java.util.Optional<Expression> |
getPushedPredicate() |
java.util.Optional<Expression> |
getResidualPredicate() |
CloseableIterator<AddFile> getFiles()
CloseableIterator
over files belonging to this snapshot.
There is no iteration ordering guarantee among files.
Files returned are guaranteed to satisfy the predicate, if any, returned by
getPushedPredicate()
.
CloseableIterator
over the files in this snapshot that satisfy
getPushedPredicate()
java.util.Optional<Expression> getInputPredicate()
java.util.Optional<Expression> getPushedPredicate()
getFiles()
are
guaranteed to satisfy the pushed predicate, and the caller doesn’t need to apply them
again on the returned files.java.util.Optional<Expression> getResidualPredicate()
getFiles()
are not guaranteed to satisfy the residual predicate, and the
caller should still apply them on the returned files.