public class StreamRecord<T> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
isTuple |
| Constructor and Description |
|---|
StreamRecord()
Creates an empty StreamRecord
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getField(int pos)
Gets the field of the contained object at the given position.
|
<R> R |
getKey(org.apache.flink.api.java.functions.KeySelector<T,R> keySelector)
Extracts key for the stored object using the keySelector provided.
|
T |
getObject()
Gets the wrapped object from the StreamRecord
|
StreamRecord<T> |
setObject(T object)
Sets the object stored
|
String |
toString() |
public T getObject()
public Object getField(int pos)
pos - Position of the field to get.public <R> R getKey(org.apache.flink.api.java.functions.KeySelector<T,R> keySelector)
keySelector - KeySelector for extracting the keypublic StreamRecord<T> setObject(T object)
object - Object to setCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.