Package com.streambase.sb
Enum Class SchemaUtil.CoercionOptions
- All Implemented Interfaces:
Serializable
,Comparable<SchemaUtil.CoercionOptions>
,Constable
- Enclosing class:
- com.streambase.sb.SchemaUtil
Coercion options
-
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 TypeMethodDescriptionboolean
Can option change field count?static boolean
Can coercion options transform a capture field?boolean
Can option transform capture fields?static SchemaUtil.CoercionOptions
Find capture optionabstract SchemaUtil.CoercionOptions
Get inverse of optionstatic Set<SchemaUtil.CoercionOptions>
invert
(Collection<SchemaUtil.CoercionOptions> options) Invert coercion optionsstatic SchemaUtil.CoercionOptions
Returns the enum constant of this class with the specified name.static SchemaUtil.CoercionOptions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUBSET
-
SUPERSET
-
STRICT_SUPERSET
-
CAPTURE_FLAT_TO_RAW
-
CAPTURE_RAW_TO_NEST
-
CAPTURE_RAW_TO_FLAT
-
CAPTURE_NEST_TO_RAW
-
ERROR_ON_MISS_IN_SCHEMA_CALC
-
IGNORE_METADATA_FIELDS_FOR_CAPTURE
-
NOTHING
-
-
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
-
canTransformCaptures
Can coercion options transform a capture field?- Parameters:
options
- coercion options- Returns:
- true if options can transform a capture
-
findCaptureOption
public static SchemaUtil.CoercionOptions findCaptureOption(Collection<SchemaUtil.CoercionOptions> options) Find capture option- Parameters:
options
- options to inspect- Returns:
- capture option
-
invert
public static Set<SchemaUtil.CoercionOptions> invert(Collection<SchemaUtil.CoercionOptions> options) Invert coercion options- Parameters:
options
- options to invert- Returns:
- inverted options
-
canChangeFieldCount
public boolean canChangeFieldCount()Can option change field count?- Returns:
- true if field count can change
-
canTransformsCaptures
public boolean canTransformsCaptures()Can option transform capture fields?- Returns:
- true if option can transform captures
-
getInverse
Get inverse of option- Returns:
- inverse option value
-