Package com.linkedin.venice.etl
Enum Class ETLValueSchemaTransformation
- All Implemented Interfaces:
Serializable
,Comparable<ETLValueSchemaTransformation>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ETLValueSchemaTransformation
fromSchema
(org.apache.avro.Schema schema) static ETLValueSchemaTransformation
Returns the enum constant of this class with the specified name.static ETLValueSchemaTransformation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
ADD_NULL_TO_UNION
-
UNIONIZE_WITH_NULL
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromSchema
-