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 TypeMethodDescriptionvoidclose()longreader()booleanstarted()WhetherstartOrAdvance()was called at least once, only then may a mark be taken.boolean
-
Method Details
-
reader
-
startOrAdvance
- Throws:
IOException
-
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
-