public class ActiveAddFilesIterator extends Object implements CloseableIterator<FilteredColumnarBatch>
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).| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static DeletionVectorDescriptor |
getAddFileDV(ColumnVector addFileVector,
int rowId) |
static String |
getAddFilePath(ColumnVector addFileVector,
int rowId) |
LogReplayMetrics |
getMetrics()
Returns the metrics for the log replay.
|
static DeletionVectorDescriptor |
getRemoveFileDV(ColumnVector removeFileVector,
int rowId) |
static String |
getRemoveFilePath(ColumnVector removeFileVector,
int rowId) |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
FilteredColumnarBatch |
next()
Returns the next element in the iteration.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombine, filter, mappublic boolean hasNext()
CloseableIteratorhasNext in interface CloseableIterator<FilteredColumnarBatch>hasNext in interface java.util.Iterator<FilteredColumnarBatch>public FilteredColumnarBatch next()
CloseableIteratornext in interface CloseableIterator<FilteredColumnarBatch>next in interface java.util.Iterator<FilteredColumnarBatch>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface AutoCloseablejava.io.IOExceptionpublic static String getAddFilePath(ColumnVector addFileVector, int rowId)
public static DeletionVectorDescriptor getAddFileDV(ColumnVector addFileVector, int rowId)
public static String getRemoveFilePath(ColumnVector removeFileVector, int rowId)
public static DeletionVectorDescriptor getRemoveFileDV(ColumnVector removeFileVector, int rowId)
public LogReplayMetrics getMetrics()