@Experimental(value=SOURCE_SINK)
public static class BigQueryStorageStreamSource.BigQueryStorageStreamReader<T>
extends org.apache.beam.sdk.io.BoundedSource.BoundedReader<T>
Source.Reader which reads records from a stream.| Modifier and Type | Method and Description |
|---|---|
boolean |
advance() |
void |
close() |
T |
getCurrent() |
BigQueryStorageStreamSource<T> |
getCurrentSource() |
java.lang.Double |
getFractionConsumed() |
org.apache.beam.sdk.io.BoundedSource<T> |
splitAtFraction(double fraction) |
boolean |
start() |
public boolean start()
throws java.io.IOException
start in class org.apache.beam.sdk.io.Source.Reader<T>java.io.IOExceptionpublic boolean advance()
throws java.io.IOException
advance in class org.apache.beam.sdk.io.Source.Reader<T>java.io.IOExceptionpublic T getCurrent() throws java.util.NoSuchElementException
getCurrent in class org.apache.beam.sdk.io.Source.Reader<T>java.util.NoSuchElementExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in class org.apache.beam.sdk.io.Source.Reader<T>public BigQueryStorageStreamSource<T> getCurrentSource()
getCurrentSource in class org.apache.beam.sdk.io.BoundedSource.BoundedReader<T>public org.apache.beam.sdk.io.BoundedSource<T> splitAtFraction(double fraction)
splitAtFraction in class org.apache.beam.sdk.io.BoundedSource.BoundedReader<T>public java.lang.Double getFractionConsumed()
getFractionConsumed in class org.apache.beam.sdk.io.BoundedSource.BoundedReader<T>