public enum FragmentAttributes extends Enum<FragmentAttributes> implements FlowFileAttributeKey
Enum Constant and Description |
---|
FRAGMENT_COUNT
The number of split FlowFiles generated from the parent 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_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.
|
SEGMENT_ORIGINAL_FILENAME
The filename of the parent FlowFile.
|
Modifier and Type | Method and Description |
---|---|
static FlowFile |
copyAttributesToOriginal(ProcessSession processSession,
FlowFile originalFlowFile,
String fragmentId,
int fragmentCount) |
String |
key() |
static FragmentAttributes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FragmentAttributes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FragmentAttributes FRAGMENT_SIZE
public static final FragmentAttributes FRAGMENT_ID
public static final FragmentAttributes FRAGMENT_INDEX
public static final FragmentAttributes FRAGMENT_COUNT
public static final FragmentAttributes SEGMENT_ORIGINAL_FILENAME
private final String key
public static FragmentAttributes[] values()
for (FragmentAttributes c : FragmentAttributes.values()) System.out.println(c);
public static FragmentAttributes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String key()
key
in interface FlowFileAttributeKey
public static FlowFile copyAttributesToOriginal(ProcessSession processSession, FlowFile originalFlowFile, String fragmentId, int fragmentCount)
Copyright © 2018 Apache NiFi Project. All rights reserved.