| Package | Description |
|---|---|
| org.apache.flink.api.common.typeinfo | |
| org.apache.flink.api.java.typeutils | |
| org.apache.flink.api.java.typeutils.runtime | |
| org.apache.flink.types |
| Modifier and Type | Method and Description |
|---|---|
static <L,R> TypeInformation<Either<L,R>> |
Types.EITHER(TypeInformation<L> leftType,
TypeInformation<R> rightType)
Returns type information for Flink's
Either type. |
| Modifier and Type | Method and Description |
|---|---|
TypeSerializer<Either<L,R>> |
EitherTypeInfo.createSerializer(ExecutionConfig config) |
TypeInformation<Either<L,R>> |
EitherTypeInfoFactory.createTypeInfo(Type t,
Map<String,TypeInformation<?>> genericParameters) |
Class<Either<L,R>> |
EitherTypeInfo.getTypeClass() |
| Modifier and Type | Method and Description |
|---|---|
Either<L,R> |
EitherSerializer.copy(Either<L,R> from) |
Either<L,R> |
EitherSerializer.copy(Either<L,R> from,
Either<L,R> reuse) |
Either<L,R> |
EitherSerializer.createInstance() |
Either<L,R> |
EitherSerializer.deserialize(DataInputView source) |
Either<L,R> |
EitherSerializer.deserialize(Either<L,R> reuse,
DataInputView source) |
| Modifier and Type | Method and Description |
|---|---|
TypeSerializer<Either<L,R>> |
EitherSerializer.duplicate() |
CompatibilityResult<Either<L,R>> |
EitherSerializer.ensureCompatibility(TypeSerializerConfigSnapshot configSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
Either<L,R> |
EitherSerializer.copy(Either<L,R> from) |
Either<L,R> |
EitherSerializer.copy(Either<L,R> from,
Either<L,R> reuse) |
Either<L,R> |
EitherSerializer.copy(Either<L,R> from,
Either<L,R> reuse) |
Either<L,R> |
EitherSerializer.deserialize(Either<L,R> reuse,
DataInputView source) |
void |
EitherSerializer.serialize(Either<L,R> record,
DataOutputView target) |
| Modifier and Type | Class and Description |
|---|---|
static class |
Either.Left<L,R>
A left value of
Either |
static class |
Either.Right<L,R>
A right value of
Either |
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either<L,R> |
Either.Left(L value)
Create a Left value of Either
|
static <L,R> Either<L,R> |
Either.Right(R value)
Create a Right value of Either
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either.Left<L,R> |
Either.obtainLeft(Either<L,R> input,
TypeSerializer<L> leftSerializer)
Utility function for
EitherSerializer to support object reuse. |
static <L,R> Either.Right<L,R> |
Either.obtainRight(Either<L,R> input,
TypeSerializer<R> rightSerializer)
Utility function for
EitherSerializer to support object reuse. |
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.