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 TypeMethodDescriptionlongextractTimestamp(Tuple tuple) Return the tuple timestamp indicating the time when the event happened.static TupleFieldTimestampExtractortoString()
-
Method Details
-
of
-
extractTimestamp
Description copied from interface:TimestampExtractorReturn the tuple timestamp indicating the time when the event happened.- Specified by:
extractTimestampin interfaceTimestampExtractor- Parameters:
tuple- the tuple- Returns:
- the timestamp
-
toString
-