Package org.apache.storm.windowing
Interface TimestampExtractor
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
TupleFieldTimestampExtractor
public interface TimestampExtractor extends Serializable
Interface to be implemented for extracting timestamp from a tuple.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
extractTimestamp(Tuple tuple)
Return the tuple timestamp indicating the time when the event happened.
-
-
-
Method Detail
-
extractTimestamp
long extractTimestamp(Tuple tuple)
Return the tuple timestamp indicating the time when the event happened.- Parameters:
tuple
- the tuple- Returns:
- the timestamp
-
-