public final class TupleFieldTimestampExtractor extends java.lang.Object implements TimestampExtractor
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(java.lang.String fieldName) |
java.lang.String |
toString() |
public static TupleFieldTimestampExtractor of(java.lang.String fieldName)
public long extractTimestamp(Tuple tuple)
TimestampExtractor
extractTimestamp
in interface TimestampExtractor
tuple
- the tuplepublic java.lang.String toString()
toString
in class java.lang.Object