Enum Class TupleCopier.Options

java.lang.Object
java.lang.Enum<TupleCopier.Options>
com.streambase.sb.TupleCopier.Options
All Implemented Interfaces:
Serializable, Comparable<TupleCopier.Options>, Constable
Enclosing class:
TupleCopier

public static enum TupleCopier.Options extends Enum<TupleCopier.Options>
Options for this TupleCopier
  • Enum Constant Details

    • CopyByName

      public static final TupleCopier.Options 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

      public static final TupleCopier.Options 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

      public static final TupleCopier.Options 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

      public static final TupleCopier.Options IgnoreTimestampFields
      IgnoreTimestampFields (off by default)Used by tupleEquals and will cause the comparison to ignore any field with DataType.TIMESTAMP.
  • Method Details

    • values

      public static TupleCopier.Options[] 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

      public static TupleCopier.Options valueOf(String name)
      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 name
      NullPointerException - if the argument is null