Class GenericContainerWithVersion

java.lang.Object
io.confluent.kafka.serializers.GenericContainerWithVersion

public class GenericContainerWithVersion extends Object
Wrapper for GenericContainer along with a version number, which may be null.

The version is typically the version of the Avro schema of the GenericContainer in the context of a subject. The version is used to set the version on the Connect Schema that is derived from the Avro schema, but only if the Avro schema does not have a property named "connect.version", which takes precedence over the version here.

  • Constructor Details

    • GenericContainerWithVersion

      public GenericContainerWithVersion(org.apache.avro.generic.GenericContainer container, Integer version)
  • Method Details

    • container

      public org.apache.avro.generic.GenericContainer container()
    • version

      public Integer version()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object