public class AggregationMethodFactory extends Object
Constructor and Description |
---|
AggregationMethodFactory(AggregationSpec aggregationSpec,
String resultGraphPrefix,
ConflictResolutionConfig globalConfig)
Creates a new factory with the given settings for creating new aggregations.
|
Modifier and Type | Method and Description |
---|---|
protected AggregationMethod |
createAggregation(EnumAggregationType type)
Create a new instance of AggregationMethod implementing the selected type of aggregation.
|
protected AggregationMethod |
createSingleValueAggregation()
Creates a new instance of AggregationMethod for aggregating a single conflicting quad.
|
AggregationMethod |
getAggregation(EnumAggregationType type)
Returns an instance of AggregationMethod implementing the selected type of aggregation.
|
AggregationMethod |
getAggregation(String propertyURI)
Returns an appropriate instance of AggregationMethod for the given property according to
aggregation settings given in the constructor.
|
AggregationMethod |
getSingleValueAggregation()
Returns an instance of AggregationMethod for aggregating a single
conflicting quad.
|
public AggregationMethodFactory(AggregationSpec aggregationSpec, String resultGraphPrefix, ConflictResolutionConfig globalConfig)
aggregationSpec
- aggregation and quality calculation settingsresultGraphPrefix
- prefix of URIs of named graphs where resolved triples are placedglobalConfig
- global configuration values for conflict resolutionpublic AggregationMethod getAggregation(EnumAggregationType type) throws AggregationNotImplementedException
type
- type of aggregationAggregationNotImplementedException
- thrown if there is no
AggregationMethod implementation for the selected aggregation typeEnumAggregationType
public AggregationMethod getAggregation(String propertyURI) throws AggregationNotImplementedException
propertyURI
- URI of a propertyAggregationNotImplementedException
- thrown if there is no
AggregationMethod implementation for the selected aggregation typepublic AggregationMethod getSingleValueAggregation()
protected AggregationMethod createAggregation(EnumAggregationType type) throws AggregationNotImplementedException
type
- type of aggregationAggregationNotImplementedException
- thrown if there is no
AggregationMethod implementation for the selected aggregation typegetAggregation(EnumAggregationType)
protected AggregationMethod createSingleValueAggregation()
getSingleValueAggregation()
Copyright © 2013. All Rights Reserved.