public class Timestamp
extends stream.AbstractProcessor
This simple processor adds a timestamp (current time in milliseconds) to all processed data items.
| Constructor and Description |
|---|
Timestamp() |
Timestamp(String key,
String format,
String from) |
public String getKey()
public void setKey(String key)
key - the key to setpublic String getFormat()
public void setFormat(String format)
format - the format to setpublic String getFrom()
public void setFrom(String from)
from - the from to setpublic stream.Data process(stream.Data data)
stream.DataProcessor#process(stream.data.Data)Copyright © 2015 jwall.org. All Rights Reserved.