Enum Class ETLValueSchemaTransformation

java.lang.Object
java.lang.Enum<ETLValueSchemaTransformation>
com.linkedin.venice.etl.ETLValueSchemaTransformation
All Implemented Interfaces:
Serializable, Comparable<ETLValueSchemaTransformation>, Constable

public enum ETLValueSchemaTransformation extends Enum<ETLValueSchemaTransformation>
In ETL jobs, when a "delete" record is seen, "value" is set to "null" and "DELETED_TS" is set to the offset where this delete record was seen. To allow the value field to be set as "null", the schema may need to be modified if it doesn't already allow for a "null" value. For "union" schemas, "null" must be added to the union if it is not already one of the allowed types. For all other avro types, the value schema is set to a union schema of "null" and the original value schema.
  • Enum Constant Details

  • Method Details

    • values

      public static ETLValueSchemaTransformation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ETLValueSchemaTransformation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromSchema

      public static ETLValueSchemaTransformation fromSchema(org.apache.avro.Schema schema)