public abstract class TraversableTypeInfo<T extends scala.collection.TraversableOnce<E>,E> extends TypeInformation<T>
Constructor and Description |
---|
TraversableTypeInfo(Class<T> clazz,
TypeInformation<E> elementTypeInfo) |
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() |
abstract TypeSerializer<T> |
createSerializer(ExecutionConfig executionConfig)
Creates a serializer for the type.
|
TypeInformation<E> |
elementTypeInfo() |
boolean |
equals(Object other) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
Map<String,TypeInformation<?>> |
getGenericParameters()
Optional method for giving Flink's type extraction system information about the mapping
of a generic type parameter to the type information of a subtype.
|
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.
|
String |
toString() |
isSortKeyType, of, of
public TraversableTypeInfo(Class<T> clazz, TypeInformation<E> elementTypeInfo)
public TypeInformation<E> elementTypeInfo()
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public int getTotalFields()
TypeInformation
getTotalFields
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public Class<T> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public Map<String,TypeInformation<?>> getGenericParameters()
TypeInformation
Tuple2
would look like this:
Map m = new HashMap();
m.put("T0", this.getTypeAt(0));
m.put("T1", this.getTypeAt(1));
return m;
getGenericParameters
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public abstract TypeSerializer<T> createSerializer(ExecutionConfig executionConfig)
TypeInformation
createSerializer
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
executionConfig
- The config used to parameterize the serializer.public boolean equals(Object other)
equals
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public int hashCode()
hashCode
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
obj
- Object which wants to take part in the equality relationpublic String toString()
toString
in class TypeInformation<T extends scala.collection.TraversableOnce<E>>
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.