Created
November 11, 2020 15:32
-
-
Save softwaredoug/62684255a68a13572aaa644fff04ed9f to your computer and use it in GitHub Desktop.
Search timestamp function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GetSearchQueryTimestampFunction implements SerializableFunction<KafkaRecord<Long, SearchQueryEvent>, Instant> { | |
@Override | |
public Instant apply(KafkaRecord<Long, SearchQueryEvent> input) { | |
return input.getKV().getValue().searchTimestamp; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment