Package io.delta.kernel.internal.replay
Class ActiveAddFilesIterator
Object
io.delta.kernel.internal.replay.ActiveAddFilesIterator
- All Implemented Interfaces:
CloseableIterator<FilteredColumnarBatch>,Closeable,AutoCloseable,Iterator<FilteredColumnarBatch>
public class ActiveAddFilesIterator
extends Object
implements CloseableIterator<FilteredColumnarBatch>
This class takes an iterator of (
ColumnarBatch, isFromCheckpoint), where the columnar
data inside the columnar batch represents has top level columns "add" and "remove", and produces
an iterator of FilteredColumnarBatch with only the "add" column and with a selection
vector indicating which AddFiles are still active in the table (have not been tombstoned).-
Nested Class Summary
Nested classes/interfaces inherited from interface io.delta.kernel.utils.CloseableIterator
CloseableIterator.BreakableFilterResult -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DeletionVectorDescriptorgetAddFileDV(ColumnVector addFileVector, int rowId) static StringgetAddFilePath(ColumnVector addFileVector, int rowId) static DeletionVectorDescriptorgetRemoveFileDV(ColumnVector removeFileVector, int rowId) static StringgetRemoveFilePath(ColumnVector removeFileVector, int rowId) booleanhasNext()Returns true if the iteration has more elements.next()Returns the next element in the iteration.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.delta.kernel.utils.CloseableIterator
breakableFilter, combine, filter, flatMap, map, takeWhile, toInMemoryListMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:CloseableIteratorReturns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceCloseableIterator<FilteredColumnarBatch>- Specified by:
hasNextin interfaceIterator<FilteredColumnarBatch>- Returns:
- true if the iteration has more elements
-
next
Description copied from interface:CloseableIteratorReturns the next element in the iteration.- Specified by:
nextin interfaceCloseableIterator<FilteredColumnarBatch>- Specified by:
nextin interfaceIterator<FilteredColumnarBatch>- Returns:
- the next element in the iteration
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getAddFilePath
-
getAddFileDV
-
getRemoveFilePath
-
getRemoveFileDV
-