Class NothingTypeInfo
- java.lang.Object
-
- org.apache.flink.api.common.typeinfo.TypeInformation<Nothing>
-
- org.apache.flink.api.common.typeinfo.NothingTypeInfo
-
- All Implemented Interfaces:
Serializable
@Public public class NothingTypeInfo extends TypeInformation<Nothing>
Placeholder type information for theNothing
type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NothingTypeInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(Object obj)
Returns true if the given object can be equaled with this object.TypeSerializer<Nothing>
createSerializer(SerializerConfig serializerConfig)
Creates a serializer for the type.boolean
equals(Object obj)
int
getArity()
Gets the arity of this type - the number of fields without nesting.int
getTotalFields()
Gets the number of logical fields in this type.Class<Nothing>
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()
-
Methods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation
getGenericParameters, isSortKeyType, of, of
-
-
-
-
Method Detail
-
isBasicType
@PublicEvolving public boolean isBasicType()
Description copied from class:TypeInformation
Checks if this type information represents a basic type. Basic types are defined inBasicTypeInfo
and are primitives, their boxing types, Strings, Date, Void, ...- Specified by:
isBasicType
in classTypeInformation<Nothing>
- Returns:
- True, if this type information describes a basic type, false otherwise.
-
isTupleType
@PublicEvolving public boolean isTupleType()
Description copied from class:TypeInformation
Checks if this type information represents a Tuple type. Tuple types are subclasses of the Java API tuples.- Specified by:
isTupleType
in classTypeInformation<Nothing>
- Returns:
- True, if this type information describes a tuple type, false otherwise.
-
getArity
@PublicEvolving public int getArity()
Description copied from class:TypeInformation
Gets the arity of this type - the number of fields without nesting.- Specified by:
getArity
in classTypeInformation<Nothing>
- Returns:
- Gets the number of fields in this type without nesting.
-
getTotalFields
@PublicEvolving public int getTotalFields()
Description copied from class:TypeInformation
Gets the number of logical fields in this type. This includes its nested and transitively nested fields, in the case of composite types. In the example above, the OuterType type has three fields in total.The total number of fields must be at least 1.
- Specified by:
getTotalFields
in classTypeInformation<Nothing>
- Returns:
- The number of fields in this type, including its sub-fields (for composite types)
-
getTypeClass
@PublicEvolving public Class<Nothing> getTypeClass()
Description copied from class:TypeInformation
Gets the class of the type represented by this type information.- Specified by:
getTypeClass
in classTypeInformation<Nothing>
- Returns:
- The class of the type represented by this type information.
-
isKeyType
@PublicEvolving public boolean isKeyType()
Description copied from class:TypeInformation
Checks whether this type can be used as a key. As a bare minimum, types have to be hashable and comparable to be keys.- Specified by:
isKeyType
in classTypeInformation<Nothing>
- Returns:
- True, if the type can be used as a key, false otherwise.
-
createSerializer
@PublicEvolving public TypeSerializer<Nothing> createSerializer(SerializerConfig serializerConfig)
Description copied from class:TypeInformation
Creates a serializer for the type. The serializer may use the ExecutionConfig for parameterization.- Specified by:
createSerializer
in classTypeInformation<Nothing>
- Parameters:
serializerConfig
- The config used to parameterize the serializer.- Returns:
- A serializer for this type.
-
toString
public String toString()
- Specified by:
toString
in classTypeInformation<Nothing>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classTypeInformation<Nothing>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classTypeInformation<Nothing>
-
canEqual
public boolean canEqual(Object obj)
Description copied from class:TypeInformation
Returns true if the given object can be equaled with this object. If not, it returns false.- Specified by:
canEqual
in classTypeInformation<Nothing>
- Parameters:
obj
- Object which wants to take part in the equality relation- Returns:
- true if obj can be equaled with this, otherwise false
-
-