Enum Class FragmentAttributes
- All Implemented Interfaces:
Serializable
,Comparable<FragmentAttributes>
,Constable
,FlowFileAttributeKey
This enum class contains flow file attribute keys commonly used among Split processors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe number of split FlowFiles generated from the parent FlowFile.All split FlowFiles produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute.A one-up number that indicates the ordering of the split FlowFiles that were created from a single parent FlowFile.The number of bytes from the original FlowFile that were copied to this FlowFile, including header, if applicable, which is duplicated in each split FlowFile.The filename of the parent FlowFile. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowFile
copyAttributesToOriginal
(ProcessSession processSession, FlowFile originalFlowFile, String fragmentId, int fragmentCount) key()
static FragmentAttributes
Returns the enum constant of this class with the specified name.static FragmentAttributes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FRAGMENT_SIZE
The number of bytes from the original FlowFile that were copied to this FlowFile, including header, if applicable, which is duplicated in each split FlowFile. -
FRAGMENT_ID
All split FlowFiles produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute. -
FRAGMENT_INDEX
A one-up number that indicates the ordering of the split FlowFiles that were created from a single parent FlowFile. -
FRAGMENT_COUNT
The number of split FlowFiles generated from the parent FlowFile. -
SEGMENT_ORIGINAL_FILENAME
The filename of the parent FlowFile.
-
-
Field Details
-
key
-
-
Constructor Details
-
FragmentAttributes
-
-
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
-
key
- Specified by:
key
in interfaceFlowFileAttributeKey
-
copyAttributesToOriginal
public static FlowFile copyAttributesToOriginal(ProcessSession processSession, FlowFile originalFlowFile, String fragmentId, int fragmentCount)
-