Package org.eclipse.rdf4j.model.util
Class ModelCollector
java.lang.Object
org.eclipse.rdf4j.model.util.ModelCollector
Collects a stream of Statements into a Model. By default a
LinkedHashModel
will be returned.- Author:
- Bart Hanssens
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncombiner()
finisher()
supplier()
static ModelCollector
toModel()
Convenience method to obtain a ModelCollector.static ModelCollector
Convenience method to obtain a ModelCollector, which will return a TreeModel.
-
Constructor Details
-
ModelCollector
public ModelCollector()Constructor -
ModelCollector
Constructor- Parameters:
factory
-
-
-
Method Details
-
toModel
Convenience method to obtain a ModelCollector.- Returns:
- a ModelCollector
-
toTreeModel
Convenience method to obtain a ModelCollector, which will return a TreeModel.- Returns:
- a ModelCollector
-
supplier
-
accumulator
- Specified by:
accumulator
in interfaceCollector<Statement,
Model, Model>
-
combiner
-
finisher
-
characteristics
- Specified by:
characteristics
in interfaceCollector<Statement,
Model, Model>
-