|
|||||||||
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.IndependentMapper<T>
T
- public abstract class IndependentMapper<T>
A type of mapper that operates on each object in a stream independently. Subclasses
extending this class only have to implement the doMap(T object)
method,
which is then applied to each object in the argument of map(Iterable
.
Constructor Summary | |
---|---|
IndependentMapper()
|
Method Summary | |
---|---|
protected java.lang.Iterable<T> |
doMap(java.lang.Iterable<T> objects)
|
abstract T |
doMap(T object)
|
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 IndependentMapper()
Method Detail |
---|
public abstract T doMap(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 |