Enum Class CoreAttributes

java.lang.Object
java.lang.Enum<CoreAttributes>
org.apache.nifi.flowfile.attributes.CoreAttributes
All Implemented Interfaces:
Serializable, Comparable<CoreAttributes>, Constable, FlowFileAttributeKey

public enum CoreAttributes extends Enum<CoreAttributes> implements FlowFileAttributeKey
  • Enum Constant Details

    • PATH

      public static final CoreAttributes PATH
      The FlowFile's path indicates the relative directory to which a FlowFile belongs and does not contain the filename
    • ABSOLUTE_PATH

      public static final CoreAttributes ABSOLUTE_PATH
      The FlowFile's absolute path indicates the absolute directory to which a FlowFile belongs and does not contain the filename
    • FILENAME

      public static final CoreAttributes FILENAME
      The filename of the FlowFile. The filename should not contain any directory structure.
    • UUID

      public static final CoreAttributes UUID
      A unique UUID assigned to this FlowFile
    • PRIORITY

      public static final CoreAttributes PRIORITY
      A numeric value indicating the FlowFile priority
    • MIME_TYPE

      public static final CoreAttributes MIME_TYPE
      The MIME Type of this FlowFile
    • DISCARD_REASON

      public static final CoreAttributes DISCARD_REASON
      Specifies the reason that a FlowFile is being discarded
    • ALTERNATE_IDENTIFIER

      public static final CoreAttributes ALTERNATE_IDENTIFIER
      Indicates an identifier other than the FlowFile's UUID that is known to refer to this FlowFile.
  • Field Details

    • key

      private final String key
  • Constructor Details

    • CoreAttributes

      private CoreAttributes(String key)
  • Method Details

    • values

      public static CoreAttributes[] 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 CoreAttributes 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
    • key

      public String key()
      Specified by:
      key in interface FlowFileAttributeKey