public static enum TupleCopier.Options extends java.lang.Enum<TupleCopier.Options>
Enum Constant and Description |
---|
CopyByIndex
TupleCopier.Options.CopyByIndex (off by default) will cause the copier to copy via indexes. |
CopyByName
The default option:
TupleCopier.Options.CopyByName will cause the copier to copy via field names. |
IgnoreTimestampFields
TupleCopier.Options.IgnoreTimestampFields (off by default)Used by tupleEquals and will cause the comparison to ignore any field with DataType.TIMESTAMP. |
Strict
TupleCopier.Options.Strict (off by default) will cause the copier to copy fields in a strict manner. |
Modifier and Type | Method and Description |
---|---|
static TupleCopier.Options |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TupleCopier.Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TupleCopier.Options CopyByName
TupleCopier.Options.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.public static final TupleCopier.Options CopyByIndex
TupleCopier.Options.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.public static final TupleCopier.Options Strict
TupleCopier.Options.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.public static final TupleCopier.Options IgnoreTimestampFields
TupleCopier.Options.IgnoreTimestampFields
(off by default)Used by tupleEquals and will cause the comparison to ignore any field with DataType.TIMESTAMP.
public static TupleCopier.Options[] values()
for (TupleCopier.Options c : TupleCopier.Options.values()) System.out.println(c);
public static TupleCopier.Options valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null