public class CoreMapAggregator extends Object implements java.util.function.Function<List<? extends CoreMap>,CoreMap>
Modifier and Type | Field and Description |
---|---|
static CoreMapAggregator |
DEFAULT_AGGREGATOR |
Constructor and Description |
---|
CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators) |
CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators,
Class mergedKey) |
Modifier and Type | Method and Description |
---|---|
CoreMap |
apply(List<? extends CoreMap> in) |
static CoreMapAggregator |
getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators) |
static CoreMapAggregator |
getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators,
Class key) |
static CoreMapAggregator |
getDefaultAggregator() |
CoreMap |
merge(List<? extends CoreMap> in,
int start,
int end) |
List<CoreMap> |
merge(List<? extends CoreMap> list,
List<? extends HasInterval<Integer>> matched) |
<M> List<CoreMap> |
merge(List<? extends CoreMap> list,
List<M> matched,
java.util.function.Function<M,Interval<Integer>> toIntervalFunc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public static final CoreMapAggregator DEFAULT_AGGREGATOR
public CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators)
public CoreMapAggregator(Map<Class,CoreMapAttributeAggregator> aggregators, Class mergedKey)
public CoreMap apply(List<? extends CoreMap> in)
apply
in interface java.util.function.Function<List<? extends CoreMap>,CoreMap>
public static CoreMapAggregator getDefaultAggregator()
public static CoreMapAggregator getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators)
public static CoreMapAggregator getAggregator(Map<Class,CoreMapAttributeAggregator> aggregators, Class key)
public List<CoreMap> merge(List<? extends CoreMap> list, List<? extends HasInterval<Integer>> matched)