T
- the Value
typepublic class ValueArrayTypeInfo<T> extends TypeInformation<ValueArray<T>> implements AtomicType<ValueArray<T>>
TypeInformation
for the ValueArray
type.Modifier and Type | Field and Description |
---|---|
static ValueArrayTypeInfo<ByteValue> |
BYTE_VALUE_ARRAY_TYPE_INFO |
static ValueArrayTypeInfo<IntValue> |
INT_VALUE_ARRAY_TYPE_INFO |
static ValueArrayTypeInfo<LongValue> |
LONG_VALUE_ARRAY_TYPE_INFO |
static ValueArrayTypeInfo<NullValue> |
NULL_VALUE_ARRAY_TYPE_INFO |
static ValueArrayTypeInfo<StringValue> |
STRING_VALUE_ARRAY_TYPE_INFO |
Constructor and Description |
---|
ValueArrayTypeInfo(TypeInformation<T> valueType) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeComparator<ValueArray<T>> |
createComparator(boolean sortOrderAscending,
ExecutionConfig executionConfig)
Creates a comparator for this type.
|
TypeSerializer<ValueArray<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.
|
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<ValueArray<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 static final ValueArrayTypeInfo<ByteValue> BYTE_VALUE_ARRAY_TYPE_INFO
public static final ValueArrayTypeInfo<IntValue> INT_VALUE_ARRAY_TYPE_INFO
public static final ValueArrayTypeInfo<LongValue> LONG_VALUE_ARRAY_TYPE_INFO
public static final ValueArrayTypeInfo<NullValue> NULL_VALUE_ARRAY_TYPE_INFO
public static final ValueArrayTypeInfo<StringValue> STRING_VALUE_ARRAY_TYPE_INFO
public ValueArrayTypeInfo(TypeInformation<T> valueType)
public int getArity()
TypeInformation
getArity
in class TypeInformation<ValueArray<T>>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<ValueArray<T>>
public Class<ValueArray<T>> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<ValueArray<T>>
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType
in class TypeInformation<ValueArray<T>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<ValueArray<T>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<ValueArray<T>>
public TypeSerializer<ValueArray<T>> createSerializer(ExecutionConfig executionConfig)
TypeInformation
createSerializer
in class TypeInformation<ValueArray<T>>
executionConfig
- The config used to parameterize the serializer.public TypeComparator<ValueArray<T>> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig)
AtomicType
createComparator
in interface AtomicType<ValueArray<T>>
sortOrderAscending
- True, if the comparator should define the order to be ascending,
false, if the comparator should define the order to be descending.executionConfig
- The config from which the comparator will be parametrized. Parametrization
includes for example registration of class tags for frameworks like Kryo.public Map<String,TypeInformation<?>> getGenericParameters()
TypeInformation
For instance, a method for a 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<ValueArray<T>>
public int hashCode()
hashCode
in class TypeInformation<ValueArray<T>>
public boolean equals(Object obj)
equals
in class TypeInformation<ValueArray<T>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<ValueArray<T>>
obj
- Object which wants to take part in the equality relationpublic String toString()
toString
in class TypeInformation<ValueArray<T>>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.