public static class TimestampPolicyFactory.LogAppendTimePolicy<K,V> extends TimestampPolicy<K,V>
KafkaIO.Read.withLogAppendTime() for longer description.TimestampPolicy.PartitionContext| Modifier and Type | Field and Description | 
|---|---|
| protected Instant | currentWatermark | 
| Constructor and Description | 
|---|
| LogAppendTimePolicy(java.util.Optional<Instant> previousWatermark) | 
| Modifier and Type | Method and Description | 
|---|---|
| Instant | getTimestampForRecord(TimestampPolicy.PartitionContext context,
                     KafkaRecord<K,V> record)Returns record timestamp (aka event time). | 
| Instant | getWatermark(TimestampPolicy.PartitionContext context)Returns watermark for the partition. | 
protected Instant currentWatermark
public LogAppendTimePolicy(java.util.Optional<Instant> previousWatermark)
public Instant getTimestampForRecord(TimestampPolicy.PartitionContext context, KafkaRecord<K,V> record)
TimestampPolicygetTimestampForRecord in class TimestampPolicy<K,V>public Instant getWatermark(TimestampPolicy.PartitionContext context)
TimestampPolicyUnboundedSource.UnboundedReader#getWatermark() for more guidance on watermarks. E.g. if the
 record timestamp is 'LogAppendTime', watermark would be the timestamp of the last record since
 'LogAppendTime' monotonically increases within a partition.getWatermark in class TimestampPolicy<K,V>