Class BeamCommitLogReader


  • class BeamCommitLogReader
    extends java.lang.Object
    A Source.Reader created from CommitLogReader.
    • Field Detail

      • LOWEST_INSTANT

        private static final org.joda.time.Instant LOWEST_INSTANT
      • HIGHEST_INSTANT

        private static final org.joda.time.Instant HIGHEST_INSTANT
      • EMPTY_BYTES

        private static final byte[] EMPTY_BYTES
      • partition

        private final Partition partition
      • name

        @Nullable
        private final java.lang.String name
      • position

        private final Position position
      • eventTime

        private final boolean eventTime
      • stopAtCurrent

        private final boolean stopAtCurrent
      • finished

        private boolean finished
      • limit

        private long limit
      • startingOffset

        @Nullable
        private final Offset startingOffset
      • offsetWatermark

        private final long offsetWatermark
      • currentProcessingTime

        private org.joda.time.Instant currentProcessingTime
      • lastReadWatermark

        private org.joda.time.Instant lastReadWatermark
    • Constructor Detail

      • BeamCommitLogReader

        private BeamCommitLogReader​(@Nullable
                                    java.lang.String name,
                                    CommitLogReader reader,
                                    Position position,
                                    boolean eventTime,
                                    @Nullable
                                    Partition partition,
                                    @Nullable
                                    Offset startingOffset,
                                    long limit,
                                    boolean stopAtCurrent)
    • Method Detail

      • getUri

        java.net.URI getUri()
      • start

        public boolean start()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • advance

        public boolean advance()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • takeNext

        private StreamElement takeNext()
                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • getCurrentTimestamp

        public org.joda.time.Instant getCurrentTimestamp()
      • getCurrent

        public StreamElement getCurrent()
                                 throws java.util.NoSuchElementException
        Throws:
        java.util.NoSuchElementException
      • close

        public void close()
      • getCurrentOffset

        @Nullable
        Offset getCurrentOffset()
      • hasExternalizableOffsets

        boolean hasExternalizableOffsets()
      • clearIncomingQueue

        void clearIncomingQueue()
      • getWatermark

        private org.joda.time.Instant getWatermark()
      • autoCommitIfBounded

        private void autoCommitIfBounded()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object