Package org.apache.storm.topology
Class TupleFieldTimestampExtractor
java.lang.Object
org.apache.storm.topology.TupleFieldTimestampExtractor
- All Implemented Interfaces:
Serializable
,TimestampExtractor
A
TimestampExtractor
that extracts timestamp from a specific field in the tuple.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlong
extractTimestamp
(Tuple tuple) Return the tuple timestamp indicating the time when the event happened.static TupleFieldTimestampExtractor
toString()
-
Method Details
-
of
-
extractTimestamp
Description copied from interface:TimestampExtractor
Return the tuple timestamp indicating the time when the event happened.- Specified by:
extractTimestamp
in interfaceTimestampExtractor
- Parameters:
tuple
- the tuple- Returns:
- the timestamp
-
toString
-