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() |
Long |
getLastQueueDate() |
long |
getLineageStartDate() |
long |
getLineageStartIndex()
Returns a 64-bit integer that indicates the order in which the FlowFile was added to the
flow with respect to other FlowFiles that have the same last lineage start date.
|
long |
getQueueDateIndex()
Returns a 64-bit integer that indicates the order in which the FlowFile was added to the
FlowFile queue with respect to other FlowFiles that have the same last queue date.
|
long |
getSize() |
boolean |
isPenalized() |
compareTo
long getId()
CoreAttributes.UUID
.
For example, by calling getAttribute(CoreAttributes.UUID.getKey()).long getEntryDate()
long getLineageStartDate()
getEntryDate()
of FlowFile X.long getLineageStartIndex()
getLineageStartDate()
, the order
in which those FlowFiles were added to the flow can be determined by looking at the result of
this method. However, no guarantee is made by this method about the ordering of FlowFiles
that have different values for the getLineageStartDate()
method.Long getLastQueueDate()
null
if the FlowFile has never been enqueued.
This value will always be populated before it is passed to a
FlowFilePrioritizerlong getQueueDateIndex()
getLastQueueDate()
, the order
in which those FlowFiles were enqueued can be determined by looking at the result of
this method. However, no guarantee is made by this method about the ordering of FlowFiles
that have different values for the getLastQueueDate()
method.boolean isPenalized()
String getAttribute(String key)
key
- of the attributelong getSize()
Copyright © 2016 Apache NiFi Project. All rights reserved.