public abstract class AbstractEvent extends Object implements org.apache.flink.core.io.IOReadableWritable, Serializable
| Constructor and Description |
|---|
AbstractEvent()
Constructs a new abstract event object.
|
AbstractEvent(long timestamp)
Constructs a new abstract event object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getSequenceNumber() |
long |
getTimestamp()
Returns the timestamp of the event.
|
String |
getTimestampString() |
int |
hashCode() |
void |
read(org.apache.flink.core.memory.DataInputView in) |
static String |
timestampToString(long timestamp)
Converts the timestamp of an event from its "milliseconds since beginning the epoch"
representation into a unified string representation.
|
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
public AbstractEvent()
public AbstractEvent(long timestamp)
timestamp - the timestamp of the event.public long getTimestamp()
public String getTimestampString()
public long getSequenceNumber()
public void read(org.apache.flink.core.memory.DataInputView in)
throws IOException
read in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic void write(org.apache.flink.core.memory.DataOutputView out)
throws IOException
write in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic static String timestampToString(long timestamp)
timestamp - the timestamp in milliseconds since the beginning of "the epoch"Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.