public final class TupleFieldTimestampExtractor extends Object implements TimestampExtractor
A TimestampExtractor
that extracts timestamp from a specific field in the tuple.
Modifier and Type | Method and Description |
---|---|
long |
extractTimestamp(Tuple tuple)
Return the tuple timestamp indicating the time when the event happened.
|
static TupleFieldTimestampExtractor |
of(String fieldName) |
String |
toString() |
public long extractTimestamp(Tuple tuple)
TimestampExtractor
Return the tuple timestamp indicating the time when the event happened.
extractTimestamp
in interface TimestampExtractor
tuple
- the tuplepublic static TupleFieldTimestampExtractor of(String fieldName)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.