Package org.apache.sling.pipes
Class ExecutionResult
- java.lang.Object
-
- org.apache.sling.pipes.ExecutionResult
-
public class ExecutionResult extends Object
holds results of the execution
-
-
Constructor Summary
Constructors Constructor Description ExecutionResult(OutputWriter writer)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(String error)voidaddResultItem(org.apache.sling.api.resource.Resource resource)Add a resource to the resultsCompositeDataasCompositeData()voidemptyCurrentSet()Empty the current path setCollection<String>getCurrentPathSet()return currentPathSetlongsize()amount of changed itemsStringtoString()
-
-
-
Constructor Detail
-
ExecutionResult
public ExecutionResult(OutputWriter writer)
Constructor- Parameters:
writer- output writer around which to create the result
-
-
Method Detail
-
addResultItem
public void addResultItem(org.apache.sling.api.resource.Resource resource)
Add a resource to the results- Parameters:
resource- resource to add
-
emptyCurrentSet
public void emptyCurrentSet()
Empty the current path set
-
getCurrentPathSet
public Collection<String> getCurrentPathSet()
return currentPathSet- Returns:
- current path set
-
size
public long size()
amount of changed items- Returns:
- total size of changed items
-
asCompositeData
public CompositeData asCompositeData() throws OpenDataException
- Returns:
- Composite data view of that result. With size of the execution, and string output (can be json, csv, ...)
- Throws:
OpenDataException- in case something went wrong building up the composite data
-
addError
public void addError(String error)
- Parameters:
error- path to record
-
-