Package com.linkedin.venice.etl
Enum ETLValueSchemaTransformation
- java.lang.Object
-
- java.lang.Enum<ETLValueSchemaTransformation>
-
- com.linkedin.venice.etl.ETLValueSchemaTransformation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ETLValueSchemaTransformation>
public enum ETLValueSchemaTransformation extends java.lang.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 Summary
Enum Constants Enum Constant Description ADD_NULL_TO_UNION
NONE
UNIONIZE_WITH_NULL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ETLValueSchemaTransformation
fromSchema(org.apache.avro.Schema schema)
static ETLValueSchemaTransformation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ETLValueSchemaTransformation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ETLValueSchemaTransformation NONE
-
ADD_NULL_TO_UNION
public static final ETLValueSchemaTransformation ADD_NULL_TO_UNION
-
UNIONIZE_WITH_NULL
public static final ETLValueSchemaTransformation UNIONIZE_WITH_NULL
-
-
Method Detail
-
values
public static ETLValueSchemaTransformation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ETLValueSchemaTransformation c : ETLValueSchemaTransformation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETLValueSchemaTransformation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromSchema
public static ETLValueSchemaTransformation fromSchema(org.apache.avro.Schema schema)
-
-