public class EitherTypeInfo<A,B,T extends scala.util.Either<A,B>> extends TypeInformation<T>
Either
.Constructor and Description |
---|
EitherTypeInfo(Class<T> clazz,
TypeInformation<A> leftTypeInfo,
TypeInformation<B> rightTypeInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
Class<T> |
clazz() |
TypeSerializer<T> |
createSerializer(ExecutionConfig executionConfig)
Creates a serializer for the type.
|
boolean |
equals(Object obj) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
List<TypeInformation<?>> |
getGenericParameters()
Returns the generic parameters of this type.
|
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<T> |
getTypeClass()
Gets the class of the type represented by this type information.
|
int |
hashCode() |
boolean |
isBasicType()
Checks if this type information represents a basic type.
|
boolean |
isKeyType()
Checks whether this type can be used as a key.
|
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
TypeInformation<A> |
leftTypeInfo() |
TypeInformation<B> |
rightTypeInfo() |
String |
toString() |
isSortKeyType, of, of
public EitherTypeInfo(Class<T> clazz, TypeInformation<A> leftTypeInfo, TypeInformation<B> rightTypeInfo)
public TypeInformation<A> leftTypeInfo()
public TypeInformation<B> rightTypeInfo()
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType
in class TypeInformation<T extends scala.util.Either<A,B>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<T extends scala.util.Either<A,B>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<T extends scala.util.Either<A,B>>
public int getTotalFields()
TypeInformation
getTotalFields
in class TypeInformation<T extends scala.util.Either<A,B>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<T extends scala.util.Either<A,B>>
public Class<T> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<T extends scala.util.Either<A,B>>
public List<TypeInformation<?>> getGenericParameters()
TypeInformation
getGenericParameters
in class TypeInformation<T extends scala.util.Either<A,B>>
public TypeSerializer<T> createSerializer(ExecutionConfig executionConfig)
TypeInformation
createSerializer
in class TypeInformation<T extends scala.util.Either<A,B>>
executionConfig
- The config used to parameterize the serializer.public boolean equals(Object obj)
equals
in class TypeInformation<T extends scala.util.Either<A,B>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<T extends scala.util.Either<A,B>>
obj
- Object which wants to take part in the equality relationpublic int hashCode()
hashCode
in class TypeInformation<T extends scala.util.Either<A,B>>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.