Enum TupleCopier.Options

    • Enum Constant Detail

      • 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 Detail

      • values

        public static TupleCopier.Options[] 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 (TupleCopier.Options c : TupleCopier.Options.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TupleCopier.Options valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null