Interface KinesisDeserializationSchema<T>

  • Type Parameters:
    T - The type created by the deserialization schema.
    All Superinterfaces:
    org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>, Serializable

    @PublicEvolving
    public interface KinesisDeserializationSchema<T>
    extends Serializable, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
    This is a deserialization schema specific for the KinesisStreamsSource. Different from the basic DeserializationSchema, this schema offers additional Kinesis-specific information about the record that may be useful to the user application.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void deserialize​(software.amazon.awssdk.services.kinesis.model.Record record, String stream, String shardId, org.apache.flink.util.Collector<T> output)
      Deserializes a Kinesis record.
      static <T> KinesisDeserializationSchema<T> of​(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema)  
      default void open​(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
      Initialization method for the schema.
      • Methods inherited from interface org.apache.flink.api.java.typeutils.ResultTypeQueryable

        getProducedType
    • Method Detail

      • deserialize

        void deserialize​(software.amazon.awssdk.services.kinesis.model.Record record,
                         String stream,
                         String shardId,
                         org.apache.flink.util.Collector<T> output)
                  throws IOException
        Deserializes a Kinesis record. If the record cannot be deserialized, null may be returned. This informs the Flink Kinesis Consumer to process the Kinesis record without producing any output for it, i.e. effectively "skipping" the record.
        Parameters:
        record - the Kinesis record to deserialize
        stream - the ARN of the Kinesis stream that this record was sent to
        shardId - the identifier of the shard the record was sent to
        output - the identifier of the shard the record was sent to
        Throws:
        IOException - exception when deserializing record
      • of

        static <T> KinesisDeserializationSchema<T> of​(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema)