@Internal public class BatchLogObservers extends java.lang.Object
BatchLogObservers.| Modifier | Constructor and Description |
|---|---|
private |
BatchLogObservers() |
| Modifier and Type | Method and Description |
|---|---|
static BatchLogObserver.OnNextContext |
defaultContext(Partition partition)
Create
BatchLogObserver.OnNextContext which holds watermark back on Long.MIN_VALUE until the end
of data. |
static BatchLogObserver.OnNextContext |
withWatermark(Partition partition,
long watermark)
Create
BatchLogObserver.OnNextContext which sets watermark ti given epoch millis. |
static BatchLogObserver.OnNextContext |
withWatermarkSupplier(Partition partition,
WatermarkSupplier watermark)
Create
BatchLogObserver.OnNextContext which moves watermark according to given WatermarkSupplier. |
public static BatchLogObserver.OnNextContext defaultContext(Partition partition)
BatchLogObserver.OnNextContext which holds watermark back on Long.MIN_VALUE until the end
of data. This is the default behavior of batch readers when there is no way to time-order data.partition - the partition to create context forBatchLogObserver.OnNextContext for given partitionpublic static BatchLogObserver.OnNextContext withWatermarkSupplier(Partition partition, WatermarkSupplier watermark)
BatchLogObserver.OnNextContext which moves watermark according to given WatermarkSupplier.partition - the partition to create context forwatermark - WatermarkSupplier for watermark at any given time. The supplier can
assume that each element gets consumed immediately after being passed to BatchLogObserver.onNext(cz.o2.proxima.storage.StreamElement)BatchLogObserver.OnNextContext for given partition and given watermark supplierpublic static BatchLogObserver.OnNextContext withWatermark(Partition partition, long watermark)
BatchLogObserver.OnNextContext which sets watermark ti given epoch millis.partition - the partition to create context forwatermark - epoch millis to set the watermark toBatchLogObserver.OnNextContext for given partition with given watermarkCopyright © 2017–2021. All rights reserved.