Class BeamBatchLogReader

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    class BeamBatchLogReader
    extends org.apache.beam.sdk.io.BoundedSource.BoundedReader<StreamElement>
    A BoundedSource.BoundedReader reading from BatchLogReader.
    • Method Detail

      • getCurrentSource

        public org.apache.beam.sdk.io.BoundedSource<StreamElement> getCurrentSource()
        Specified by:
        getCurrentSource in class org.apache.beam.sdk.io.BoundedSource.BoundedReader<StreamElement>
      • start

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

        public boolean advance()
                        throws java.io.IOException
        Specified by:
        advance in class org.apache.beam.sdk.io.Source.Reader<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()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class org.apache.beam.sdk.io.Source.Reader<StreamElement>
        Throws:
        java.io.IOException
      • getCurrentTimestamp

        public org.joda.time.Instant getCurrentTimestamp()
                                                  throws java.util.NoSuchElementException
        Overrides:
        getCurrentTimestamp in class org.apache.beam.sdk.io.BoundedSource.BoundedReader<StreamElement>
        Throws:
        java.util.NoSuchElementException