SnapshotIterator¶
SnapshotIterator
is an abstraction of iterators over indexed AddFile actions in a Delta log for DeltaSourceSnapshots.
Iterator of Indexed AddFiles¶
iterator(): Iterator[IndexedFile]
iterator
returns an Iterator
(Scala) of IndexedFile
s (AddFile actions in a Delta log with extra metadata) of filterFileList.
iterator
is used when:
DeltaSource
is requested for the snapshot of a delta table at a given version
Closing Iterator (Cleaning Up Internal Resources)¶
close(
unpersistSnapshot: Boolean): Unit
close
is a no-op (and leaves proper operation to implementations).
close
is used when:
DeltaSource
is requested to cleanUpSnapshotResources