Class BeamReaderCache.CachedReader<T>
java.lang.Object
org.apache.beam.runners.spark.structuredstreaming.io.streaming.BeamReaderCache.CachedReader<T>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
BeamReaderCache
A live reader with the epoch it is positioned at and the coded mark taken there.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanclaimSentinel(boolean emitSentinel) Claims the one time end of stream sentinel for this reader once the driver has seen every split done.voidclose()longreader()booleanstarted()WhetherstartOrAdvance()was called at least once, only then may a mark be taken.boolean
-
Method Details
-
reader
-
startOrAdvance
- Throws:
IOException
-
claimSentinel
public boolean claimSentinel(boolean emitSentinel) Claims the one time end of stream sentinel for this reader once the driver has seen every split done. -
started
public boolean started()WhetherstartOrAdvance()was called at least once, only then may a mark be taken. -
positionEpoch
public long positionEpoch() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-