|
|||||||||
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.FilterMapper<T>
T
- public abstract class FilterMapper<T>
A type of mapper that filters each object in the stream independently. Subclasses
extending this class only have to implement the doFilter(T object)
method,
which should return true
if object
should remain in the stream,
and false
if the object should be removed from the stream.
Constructor Summary | |
---|---|
FilterMapper()
|
Method Summary | |
---|---|
abstract boolean |
doFilter(T object)
|
protected java.lang.Iterable<T> |
doMap(java.lang.Iterable<T> objects)
|
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 FilterMapper()
Method Detail |
---|
public abstract boolean doFilter(T object)
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 |