Class BinProcessingResult
java.lang.Object
org.apache.nifi.processor.util.bin.BinProcessingResult
Convenience class used to add attributes in the origin flow files once the bin was committed
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap of attributes to add to original flow filesprivate booleantrueif the processed bin was already committed. -
Constructor Summary
ConstructorsConstructorDescriptionBinProcessingResult(boolean isCommitted) BinProcessingResult(boolean isCommitted, Map<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAttributes(Map<String, String> attributes) voidsetCommitted(boolean isCommitted)
-
Field Details
-
isCommitted
private boolean isCommittedtrueif the processed bin was already committed. E.g., in case of a failure, the implementation may choose to transfer all binned files to Failure and commit their sessions. If false, the processBins() method will transfer the files to Original and commit the sessions -
attributes
Map of attributes to add to original flow files
-
-
Constructor Details
-
BinProcessingResult
public BinProcessingResult(boolean isCommitted) -
BinProcessingResult
-
-
Method Details
-
isCommitted
public boolean isCommitted() -
setCommitted
public void setCommitted(boolean isCommitted) -
getAttributes
-
setAttributes
-