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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat() |
String |
getFrom() |
String |
getKey() |
void |
init(stream.ProcessContext ctx) |
stream.Data |
process(stream.Data data) |
void |
setFormat(String format) |
void |
setFrom(String from) |
void |
setKey(String key) |
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 © 2014 jwall.org. All rights reserved.