Package com.stardog.stark.io
Class CollectingRDFHandler<T>
java.lang.Object
com.stardog.stark.io.AbstractRDFHandler
com.stardog.stark.io.CollectingRDFHandler<T>
- All Implemented Interfaces:
RDFHandler
Simple RDFHandler that will collect the statements and return a result.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Constructor Summary
ConstructorsConstructorDescriptionCollectingRDFHandler(Consumer<Statement> theConsumer, Supplier<T> theResult) -
Method Summary
Methods inherited from class com.stardog.stark.io.AbstractRDFHandler
end, namespace, start
-
Constructor Details
-
CollectingRDFHandler
-
-
Method Details
-
handle
Event for when a statement was encountered- Parameters:
theStmt- the statement
-
result
Return the result of the collected data- Returns:
- the result
-