Class BeamCommitLogReader.UnboundedCommitLogReader

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

    static class BeamCommitLogReader.UnboundedCommitLogReader
    extends org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
    • Method Detail

      • getCurrentSource

        public DirectUnboundedSource getCurrentSource()
        Specified by:
        getCurrentSource in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
      • 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
      • 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
      • 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>
      • getWatermark

        public org.joda.time.Instant getWatermark()
        Specified by:
        getWatermark in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
      • 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
      • getCurrentRecordId

        public byte[] getCurrentRecordId()
                                  throws java.util.NoSuchElementException
        Overrides:
        getCurrentRecordId in class org.apache.beam.sdk.io.UnboundedSource.UnboundedReader<StreamElement>
        Throws:
        java.util.NoSuchElementException