Package com.streambase.sb
Enum Class TupleCopier.Options
- All Implemented Interfaces:
Serializable
,Comparable<TupleCopier.Options>
,Constable
- Enclosing class:
- TupleCopier
Options for this TupleCopier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCopyByIndex
(off by default) will cause the copier to copy via indexes.The default option:CopyByName
will cause the copier to copy via field names.IgnoreTimestampFields
(off by default)Used by tupleEquals and will cause the comparison to ignore any field withDataType.TIMESTAMP.
Strict
(off by default) will cause the copier to copy fields in a strict manner. -
Method Summary
Modifier and TypeMethodDescriptionstatic TupleCopier.Options
Returns the enum constant of this class with the specified name.static TupleCopier.Options[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CopyByName
The default option:CopyByName
will cause the copier to copy via field names. This will enable Tuples to be copied where the order of the fields is different. -
CopyByIndex
CopyByIndex
(off by default) will cause the copier to copy via indexes. This will enable Tuples to be copied where the names of the fields are different. Off by default. -
Strict
Strict
(off by default) will cause the copier to copy fields in a strict manner. Strict will cause the TupleCopier to throw exceptions if schema fields do not match by name and type. Without strict the TupleCopier TupleCopier will copy only fields that match by name and type. Off by default. -
IgnoreTimestampFields
IgnoreTimestampFields
(off by default)Used by tupleEquals and will cause the comparison to ignore any field withDataType.TIMESTAMP.
-
-
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
-