DataTypes
instead. Please make sure to use either the old or
the new type system consistently to avoid unintended behavior. See the website documentation
for more information.@Internal @Deprecated public final class TimeIntervalTypeInfo<T> extends TypeInformation<T> implements AtomicType<T>, DataTypeQueryable
Modifier and Type | Field and Description |
---|---|
static TimeIntervalTypeInfo<Long> |
INTERVAL_MILLIS
Deprecated.
|
static TimeIntervalTypeInfo<Integer> |
INTERVAL_MONTHS
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Deprecated.
Returns true if the given object can be equaled with this object.
|
TypeComparator<T> |
createComparator(boolean sortOrderAscending,
ExecutionConfig executionConfig)
Deprecated.
Creates a comparator for this type.
|
TypeSerializer<T> |
createSerializer(ExecutionConfig config)
Deprecated.
Creates a serializer for the type.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
getArity()
Deprecated.
Gets the arity of this type - the number of fields without nesting.
|
DataType |
getDataType()
Deprecated.
|
int |
getTotalFields()
Deprecated.
Gets the number of logical fields in this type.
|
Class<T> |
getTypeClass()
Deprecated.
Gets the class of the type represented by this type information.
|
int |
hashCode()
Deprecated.
|
boolean |
isBasicType()
Deprecated.
Checks if this type information represents a basic type.
|
boolean |
isKeyType()
Deprecated.
Checks whether this type can be used as a key.
|
boolean |
isTupleType()
Deprecated.
Checks if this type information represents a Tuple type.
|
String |
toString()
Deprecated.
|
getGenericParameters, isSortKeyType, of, of
public static final TimeIntervalTypeInfo<Integer> INTERVAL_MONTHS
public static final TimeIntervalTypeInfo<Long> INTERVAL_MILLIS
public DataType getDataType()
getDataType
in interface DataTypeQueryable
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types, Strings, Date, Void, ...isBasicType
in class TypeInformation<T>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<T>
public int getArity()
TypeInformation
getArity
in class TypeInformation<T>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<T>
public Class<T> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<T>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<T>
public TypeSerializer<T> createSerializer(ExecutionConfig config)
TypeInformation
createSerializer
in class TypeInformation<T>
config
- The config used to parameterize the serializer.public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig)
AtomicType
createComparator
in interface AtomicType<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 int hashCode()
hashCode
in class TypeInformation<T>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<T>
obj
- Object which wants to take part in the equality relationpublic boolean equals(Object obj)
equals
in class TypeInformation<T>
public String toString()
toString
in class TypeInformation<T>
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.