public abstract class SessionFile extends Object implements FlowFile
flowFile.putAttribute("AttrName", "AttrValue");FlowFile.KeyValidator| Modifier and Type | Field and Description |
|---|---|
(package private) FlowFile |
flowFile |
(package private) ProcessSessionWrap |
session |
| Modifier | Constructor and Description |
|---|---|
protected |
SessionFile(ProcessSessionWrap session,
FlowFile f) |
| Modifier and Type | Method and Description |
|---|---|
SessionFile |
append(OutputStreamCallback c)
append flowfile content.
|
SessionFile |
clone(boolean cloneContent)
Clone flowfile with or without content.
|
int |
compareTo(FlowFile other) |
String |
getAttribute(String key) |
Map<String,String> |
getAttributes() |
long |
getEntryDate() |
long |
getId() |
Long |
getLastQueueDate() |
long |
getLineageStartDate() |
long |
getLineageStartIndex() |
long |
getQueueDateIndex() |
long |
getSize() |
boolean |
isPenalized() |
SessionFile |
putAllAttributes(Map<String,String> m)
Copy attributes from map into flowfile.
|
SessionFile |
putAttribute(String key,
String value)
set attribute value.
|
InputStream |
read()
Returns content of the flow file as InputStream.
|
void |
read(InputStreamCallback c)
read flowfile content.
|
void |
remove()
Drops this flow file from session.
|
SessionFile |
removeAllAttributes(Collection<String> keys)
Removes attributes by list.
|
SessionFile |
removeAttribute(String key)
Removes one attribute.
|
ProcessSessionWrap |
session()
Returns original session.
|
String |
toString() |
void |
transfer(Relationship r)
Transfers to defined relationship or to input relationship if parameter is null.
|
SessionFile |
write(OutputStreamCallback c)
write flowfile content.
|
SessionFile |
write(StreamCallback c)
write flowfile content.
|
FlowFile flowFile
ProcessSessionWrap session
protected SessionFile(ProcessSessionWrap session, FlowFile f)
public ProcessSessionWrap session()
public SessionFile clone(boolean cloneContent)
cloneContent - clone content or not. attributes cloned in any case.public InputStream read()
public void read(InputStreamCallback c)
public SessionFile write(StreamCallback c)
public SessionFile write(OutputStreamCallback c)
public SessionFile append(OutputStreamCallback c)
public SessionFile putAttribute(String key, String value)
public SessionFile putAllAttributes(Map<String,String> m)
public SessionFile removeAttribute(String key)
public SessionFile removeAllAttributes(Collection<String> keys)
public void transfer(Relationship r)
public void remove()
public long getEntryDate()
getEntryDate in interface FlowFilepublic long getLineageStartDate()
getLineageStartDate in interface FlowFilepublic long getLineageStartIndex()
getLineageStartIndex in interface FlowFilepublic Long getLastQueueDate()
getLastQueueDate in interface FlowFilepublic long getQueueDateIndex()
getQueueDateIndex in interface FlowFilepublic boolean isPenalized()
isPenalized in interface FlowFilepublic String getAttribute(String key)
getAttribute in interface FlowFilepublic Map<String,String> getAttributes()
getAttributes in interface FlowFilepublic int compareTo(FlowFile other)
compareTo in interface Comparable<FlowFile>Copyright © 2022 Apache NiFi Project. All rights reserved.