public static class UnboundedSocketSource.UnboundedSocketReader
extends org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>
| Constructor and Description |
|---|
UnboundedSocketReader(UnboundedSocketSource source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advance() |
void |
close() |
org.apache.beam.sdk.io.UnboundedSource.CheckpointMark |
getCheckpointMark() |
java.lang.String |
getCurrent() |
byte[] |
getCurrentRecordId() |
org.apache.beam.sdk.io.UnboundedSource<java.lang.String,?> |
getCurrentSource() |
org.joda.time.Instant |
getCurrentTimestamp() |
org.joda.time.Instant |
getWatermark() |
boolean |
start() |
public UnboundedSocketReader(UnboundedSocketSource source)
public boolean start()
throws java.io.IOException
start in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>java.io.IOExceptionpublic boolean advance()
throws java.io.IOException
advance in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>java.io.IOExceptionpublic byte[] getCurrentRecordId()
throws java.util.NoSuchElementException
getCurrentRecordId in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>java.util.NoSuchElementExceptionpublic java.lang.String getCurrent()
throws java.util.NoSuchElementException
getCurrent in class org.apache.beam.sdk.io.Source.Reader<java.lang.String>java.util.NoSuchElementExceptionpublic org.joda.time.Instant getCurrentTimestamp()
throws java.util.NoSuchElementException
getCurrentTimestamp in class org.apache.beam.sdk.io.Source.Reader<java.lang.String>java.util.NoSuchElementExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in class org.apache.beam.sdk.io.Source.Reader<java.lang.String>java.io.IOExceptionpublic org.joda.time.Instant getWatermark()
getWatermark in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>public org.apache.beam.sdk.io.UnboundedSource.CheckpointMark getCheckpointMark()
getCheckpointMark in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>public org.apache.beam.sdk.io.UnboundedSource<java.lang.String,?> getCurrentSource()
getCurrentSource in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<java.lang.String>