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.IOException
public boolean advance() throws java.io.IOException
advance
in class org.apache.beam.sdk.io.Source.Reader<T>
java.io.IOException
public T getCurrent() throws java.util.NoSuchElementException
getCurrent
in class org.apache.beam.sdk.io.Source.Reader<T>
java.util.NoSuchElementException
public void close()
close
in interface java.lang.AutoCloseable
close
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>