protected static interface AbstractFileBasedConnector.RecordReader extends AutoCloseable
Records. Implementors are not expected to deal with thread-safety issues,
these are handled by this class.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying file being read.
|
AbstractFileBasedConnector.RecordReader |
readNext(reactor.core.publisher.SynchronousSink<Record> sink)
Reads the next record and emits the record to the sink, if any.
|
@NonNull AbstractFileBasedConnector.RecordReader readNext(@NonNull reactor.core.publisher.SynchronousSink<Record> sink)
This method must never throw; any error should be signaled to the sink.
sink - The SynchronousSink that will receive the parsed record, or a termination
signal.void close()
throws IOException
readNext(SynchronousSink) will not be called anymore.close in interface AutoCloseableIOException - If an I/O error occurs while closing.Copyright © 2017–2023 DataStax. All rights reserved.