public interface FlowFile extends Comparable<FlowFile>
A flow file is a logical notion of an item in a flow with its associated attributes and identity which can be used as a reference for its actual content.
All FlowFile implementations must be Immutable - Thread safe.Modifier and Type | Interface and Description |
---|---|
static class |
FlowFile.KeyValidator |
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
Obtains the attribute value for the given key
|
Map<String,String> |
getAttributes() |
long |
getEntryDate() |
long |
getId()
Deprecated.
This method has been deprecated in favor of using the attribute
CoreAttributes.UUID .
If an identifier is needed use getAttribute(String) to retrieve the value for this attribute.
For example, by calling getAttribute(CoreAttributes.UUID.getKey()). |
Long |
getLastQueueDate() |
Set<String> |
getLineageIdentifiers()
Deprecated.
this collection was erroneously unbounded and caused a lot of OutOfMemoryError problems
when dealing with FlowFiles with many ancestors. This Collection is
now capped at 100 lineage identifiers. This method was introduced with the idea of providing
future performance improvements but due to the high cost of heap consumption will not be used
in such a manner. As a result, this method will be removed in a future release.
|
long |
getLineageStartDate() |
long |
getSize() |
boolean |
isPenalized() |
compareTo
@Deprecated long getId()
CoreAttributes.UUID
.
If an identifier is needed use getAttribute(String)
to retrieve the value for this attribute.
For example, by calling getAttribute(CoreAttributes.UUID.getKey()).long getEntryDate()
long getLineageStartDate()
getEntryDate()
of FlowFile X.Long getLastQueueDate()
null
if the FlowFile has never been enqueued.
This value will always be populated before it is passed to a
FlowFilePrioritizer
@Deprecated Set<String> getLineageIdentifiers()
If a FlowFile is derived from multiple "parent" FlowFiles, all of the parents' Lineage Identifiers will be in the set.
boolean isPenalized()
String getAttribute(String key)
key
- of the attributelong getSize()
Copyright © 2017 Apache NiFi Project. All rights reserved.