Class TypedResult<P>
- java.lang.Object
-
- org.apache.flink.table.client.gateway.TypedResult<P>
-
- Type Parameters:
P
- type of payload
public class TypedResult<P> extends Object
Result with an attached type (actual payload, EOS, etc.).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedResult.ResultType
Result types.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> TypedResult<T>
empty()
static <T> TypedResult<T>
endOfStream()
boolean
equals(Object o)
P
getPayload()
TypedResult.ResultType
getType()
int
hashCode()
static <T> TypedResult<T>
payload(T payload)
void
setPayload(P payload)
void
setType(TypedResult.ResultType type)
String
toString()
-
-
-
Method Detail
-
setType
public void setType(TypedResult.ResultType type)
-
setPayload
public void setPayload(P payload)
-
getType
public TypedResult.ResultType getType()
-
getPayload
public P getPayload()
-
empty
public static <T> TypedResult<T> empty()
-
payload
public static <T> TypedResult<T> payload(T payload)
-
endOfStream
public static <T> TypedResult<T> endOfStream()
-
-