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 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 a CommittableMessage.
      Type Parameters:
      CommT - type of the committable
      Parameters:
      committableSerializerFactory - factory to create the serializer for a CommittableMessage
    • noOutput

      public static org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<Void>> noOutput()
      Returns the type information for a CommittableMessage with no committable.
      Returns:
      TypeInformation with CommittableMessage
    • isBasicType

      public boolean isBasicType()
      Specified by:
      isBasicType in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • isTupleType

      public boolean isTupleType()
      Specified by:
      isTupleType in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • getArity

      public int getArity()
      Specified by:
      getArity in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • getTotalFields

      public int getTotalFields()
      Specified by:
      getTotalFields in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • getTypeClass

      public Class<CommittableMessage<CommT>> getTypeClass()
      Specified by:
      getTypeClass in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • isKeyType

      public boolean isKeyType()
      Specified by:
      isKeyType in class org.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:
      createSerializer in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • toString

      public String toString()
      Specified by:
      toString in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>
    • canEqual

      public boolean canEqual(Object obj)
      Specified by:
      canEqual in class org.apache.flink.api.common.typeinfo.TypeInformation<CommittableMessage<CommT>>