@Internal public abstract class StreamElement extends Object
Constructor and Description |
---|
StreamElement() |
Modifier and Type | Method and Description |
---|---|
LatencyMarker |
asLatencyMarker()
Casts this element into a LatencyMarker.
|
<E> StreamRecord<E> |
asRecord()
Casts this element into a StreamRecord.
|
StreamStatus |
asStreamStatus()
Casts this element into a StreamStatus.
|
Watermark |
asWatermark()
Casts this element into a Watermark.
|
boolean |
isLatencyMarker()
Checks whether this element is a record.
|
boolean |
isRecord()
Checks whether this element is a record.
|
boolean |
isStreamStatus()
Checks whether this element is a stream status.
|
boolean |
isWatermark()
Checks whether this element is a watermark.
|
public final boolean isWatermark()
public final boolean isStreamStatus()
public final boolean isRecord()
public final boolean isLatencyMarker()
public final <E> StreamRecord<E> asRecord()
ClassCastException
- Thrown, if this element is actually not a stream record.public final Watermark asWatermark()
ClassCastException
- Thrown, if this element is actually not a Watermark.public final StreamStatus asStreamStatus()
ClassCastException
- Thrown, if this element is actually not a Stream Status.public final LatencyMarker asLatencyMarker()
ClassCastException
- Thrown, if this element is actually not a LatencyMarker.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.