public class NifiOperator extends Object
Say you want to transfer the result tuple to relationships "success" :
nifi().addOutputRoute("success").into(root);
print();
You'll get :
{ "nifi_output_relationships": ["success"] }
Modifier and Type | Field and Description |
---|---|
static String |
OUTPUT_ROUTES_KEY |
Constructor and Description |
---|
NifiOperator()
Ctor
|
Modifier and Type | Method and Description |
---|---|
NifiOperator |
addOutputRoute(String route)
Add route to output routes
|
NifiOperator |
addOutputRoute(Tuple tuple)
Add route to output routes
|
static Set<String> |
getRoutesFromTuple(Tuple tuple)
Extract list of routes as string from tuple
|
void |
into(Tuple into)
Apply the operator an put the result into the provided tuple.
|
public static final String OUTPUT_ROUTES_KEY
public NifiOperator addOutputRoute(String route)
route
- the output routepublic NifiOperator addOutputRoute(Tuple tuple)
tuple
- the output routepublic void into(Tuple into)
into
- the output tupleCopyright © 2022. All rights reserved.