Class DirectBatchUnboundedSource.StreamElementUnboundedReader

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    DirectBatchUnboundedSource

    private static class DirectBatchUnboundedSource.StreamElementUnboundedReader
    extends org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
    • Method Detail

      • start

        public boolean start()
                      throws java.io.IOException
        Specified by:
        start in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
        Throws:
        java.io.IOException
      • advance

        public boolean advance()
                        throws java.io.IOException
        Specified by:
        advance in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
        Throws:
        java.io.IOException
      • startNewObserver

        private boolean startNewObserver()
      • getWatermark

        public org.joda.time.Instant getWatermark()
        Specified by:
        getWatermark in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
      • getCheckpointMark

        public org.apache.beam.sdk.io.UnboundedSource.CheckpointMark getCheckpointMark()
        Specified by:
        getCheckpointMark in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
      • getCurrentSource

        public org.apache.beam.sdk.io.UnboundedSource<StreamElement,​?> getCurrentSource()
        Specified by:
        getCurrentSource in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
      • getCurrent

        public StreamElement getCurrent()
                                 throws java.util.NoSuchElementException
        Specified by:
        getCurrent in class org.apache.beam.sdk.io.Source.Reader<StreamElement>
        Throws:
        java.util.NoSuchElementException
      • getCurrentTimestamp

        public org.joda.time.Instant getCurrentTimestamp()
                                                  throws java.util.NoSuchElementException
        Specified by:
        getCurrentTimestamp in class org.apache.beam.sdk.io.Source.Reader<StreamElement>
        Throws:
        java.util.NoSuchElementException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class org.apache.beam.sdk.io.Source.Reader<StreamElement>