|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.MapperList<T>
T
- public class MapperList<T>
A list of Mapper
objects. Applies each mapper in the list to an input
stream of T
objects in order.
Constructor Summary | |
---|---|
MapperList()
Constructs an empty list of mappers. |
|
MapperList(java.util.List<Mapper<T>> mappers)
Constructs a new list of mappers from the given list. |
Method Summary | |
---|---|
void |
addMapper(Mapper<T> mapper)
Adds a mapper to the end of the list. |
protected java.lang.Iterable<T> |
doMap(java.lang.Iterable<T> objects)
|
java.lang.Iterable<Mapper<T>> |
getMappers()
|
Methods inherited from class edu.washington.cs.knowitall.extractor.mapper.Mapper |
---|
disable, enable, isEnabled, map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapperList()
public MapperList(java.util.List<Mapper<T>> mappers)
mappers
- another mapper list.Method Detail |
---|
public java.lang.Iterable<Mapper<T>> getMappers()
Mapper
objects in this list.public void addMapper(Mapper<T> mapper)
mapper
- protected java.lang.Iterable<T> doMap(java.lang.Iterable<T> objects)
doMap
in class Mapper<T>
objects
- a stream of objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |