edu.washington.cs.knowitall.extractor.mapper
Class MaxMapper<S extends Comparable<S>,T>
java.lang.Object
edu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.MaxMapper<S,T>
- Type Parameters:
S - a comparable type returned by doValueMap(T object).T -
- Direct Known Subclasses:
- ClosestArgumentMapper
public abstract class MaxMapper<S extends Comparable<S>,T>
- extends Mapper<T>
A mapper class that returns the first maximal element in the object stream according
to a function doValueMap(T object).
- Author:
- afader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxMapper
public MaxMapper()
doValueMap
public abstract S doValueMap(T object)
doMap
protected Iterable<T> doMap(Iterable<T> objects)
- Specified by:
doMap in class Mapper<T>
- Parameters:
objects - a stream of objects
- Returns:
- a modified stream of objects
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.