Class CommittableMessageTypeInfo<CommT>
java.lang.Object
org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
org.apache.flink.streaming.api.connector.sink2.CommittableMessageTypeInfo<CommT>
- All Implemented Interfaces:
Serializable
@Experimental
public class CommittableMessageTypeInfo<CommT>
extends org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
The type information for the
CommittableMessage to make it consumable from a DataStream.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.flink.api.common.typeutils.TypeSerializer<CommittableMessage<CommT>>createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config) booleanintgetArity()intinthashCode()booleanbooleanbooleanstatic org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<Void>>noOutput()Returns the type information for aCommittableMessagewith no committable.static <CommT> org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>of(org.apache.flink.util.function.SerializableSupplier<org.apache.flink.core.io.SimpleVersionedSerializer<CommT>> committableSerializerFactory) Returns the type information based on the serializer for aCommittableMessage.toString()Methods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation
getGenericParameters, isSortKeyType, of, of
-
Method Details
-
of
public static <CommT> org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>> of(org.apache.flink.util.function.SerializableSupplier<org.apache.flink.core.io.SimpleVersionedSerializer<CommT>> committableSerializerFactory) Returns the type information based on the serializer for aCommittableMessage.- Type Parameters:
CommT- type of the committable- Parameters:
committableSerializerFactory- factory to create the serializer for aCommittableMessage
-
noOutput
public static org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<Void>> noOutput()Returns the type information for aCommittableMessagewith no committable.- Returns:
TypeInformationwithCommittableMessage
-
isBasicType
public boolean isBasicType()- Specified by:
isBasicTypein classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
isTupleType
public boolean isTupleType()- Specified by:
isTupleTypein classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
getArity
public int getArity()- Specified by:
getArityin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
getTotalFields
public int getTotalFields()- Specified by:
getTotalFieldsin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
getTypeClass
- Specified by:
getTypeClassin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
isKeyType
public boolean isKeyType()- Specified by:
isKeyTypein classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
createSerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<CommittableMessage<CommT>> createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config) - Specified by:
createSerializerin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
toString
- Specified by:
toStringin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
equals
- Specified by:
equalsin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-
canEqual
- Specified by:
canEqualin classorg.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
-