@Internal public abstract class StreamElement extends Object
Constructor and Description |
---|
StreamElement() |
Modifier and Type | Method and Description |
---|---|
<E> StreamRecord<E> |
asRecord()
Casts this element into a StreamRecord.
|
Watermark |
asWatermark()
Casts this element into a Watermark.
|
boolean |
isRecord()
Checks whether this element is a record.
|
boolean |
isWatermark()
Checks whether this element is a watermark.
|
public final boolean isWatermark()
public final boolean isRecord()
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.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.