public static interface FlinkCompactionFilter.ListElementFilter
| Modifier and Type | Method and Description |
|---|---|
int |
nextUnexpiredOffset(byte[] list,
long ttl,
long currentTimestamp)
Gets offset of the first unexpired element in the list.
|
int nextUnexpiredOffset(byte[] list,
long ttl,
long currentTimestamp)
Native code wraps this java object and calls it for list state for which element byte length is unknown and Flink custom type serializer has to be used to compute offset of the next element in serialized form.
list - serialised list of elements with timestampttl - time-to-live of the list elementscurrentTimestamp - current timestamp to check expiration against