public class ActionsIterator extends Object implements CloseableIterator<ActionWrapper>
Users must pass in a `readSchema` to select which actions and sub-fields they want to consume.
| Constructor and Description |
|---|
ActionsIterator(Engine engine,
java.util.List<FileStatus> files,
StructType readSchema,
java.util.Optional<Predicate> checkpointPredicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ColumnarBatch |
extractSidecarsFromBatch(FileStatus checkpointFileStatus,
long checkpointVersion,
ColumnarBatch columnarBatch)
Reads SidecarFile actions from ColumnarBatch, removing sidecar actions from the ColumnarBatch.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
ActionWrapper |
next()
Returns the next element in the iteration.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombine, filter, mappublic ActionsIterator(Engine engine, java.util.List<FileStatus> files, StructType readSchema, java.util.Optional<Predicate> checkpointPredicate)
public boolean hasNext()
CloseableIteratorhasNext in interface CloseableIterator<ActionWrapper>hasNext in interface java.util.Iterator<ActionWrapper>public ActionWrapper next()
CloseableIteratornext in interface CloseableIterator<ActionWrapper>next in interface java.util.Iterator<ActionWrapper>readSchema.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface AutoCloseablejava.io.IOExceptionpublic ColumnarBatch extractSidecarsFromBatch(FileStatus checkpointFileStatus, long checkpointVersion, ColumnarBatch columnarBatch)