Class UniqueMerge
- java.lang.Object
-
- edu.isi.pegasus.planner.namespace.aggregator.Abstract
-
- edu.isi.pegasus.planner.namespace.aggregator.UniqueMerge
-
- All Implemented Interfaces:
Aggregator
public class UniqueMerge extends Abstract
Merges profile as a delimiter separated list. It ensures that only unique values are merged.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_DELIMITER
Default delimiterprivate java.util.Set<java.lang.String>
mKeys
-
Fields inherited from interface edu.isi.pegasus.planner.namespace.aggregator.Aggregator
VERSION
-
-
Constructor Summary
Constructors Constructor Description UniqueMerge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
compute(java.lang.String oldValue, java.lang.String newValue, java.lang.String dflt)
Sums up the values.
-
-
-
Field Detail
-
DEFAULT_DELIMITER
public static final java.lang.String DEFAULT_DELIMITER
Default delimiter- See Also:
- Constant Field Values
-
mKeys
private java.util.Set<java.lang.String> mKeys
-
-
Method Detail
-
compute
public java.lang.String compute(java.lang.String oldValue, java.lang.String newValue, java.lang.String dflt)
Sums up the values.- Parameters:
oldValue
- the existing value for the profile.newValue
- the new value being added to the profile.dflt
- the default value to be used in case the values are not of the correct type.- Returns:
- the computed value as a String.
-
-