Class GvmListKeyer<K>
- java.lang.Object
-
- org.hortonmachine.gears.utils.clustering.GvmSimpleKeyer<List<K>>
-
- org.hortonmachine.gears.utils.clustering.GvmListKeyer<K>
-
- Type Parameters:
K- type of key
public class GvmListKeyer<K> extends GvmSimpleKeyer<List<K>>
Allows multiple keys to be associated with clusters in the form of a lists which may be concatenated when clusters merge.- Author:
- Tom Gibara
-
-
Constructor Summary
Constructors Constructor Description GvmListKeyer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<K>combineKeys(List<K> list1, List<K> list2)Combines two keys.-
Methods inherited from class org.hortonmachine.gears.utils.clustering.GvmSimpleKeyer
addKey, mergeKeys
-
-
-
-
Method Detail
-
combineKeys
protected List<K> combineKeys(List<K> list1, List<K> list2)
Description copied from class:GvmSimpleKeyerCombines two keys. Combining two keys may totally discard information from one, both or none of the supplied keys.- Specified by:
combineKeysin classGvmSimpleKeyer<List<K>>- Parameters:
list1- a key, not nulllist2- a key, not null- Returns:
- a combined key
-
-