- java.lang.Object
-
- jp.cafebabe.birthmarks.AbstractTask<BirthmarkType>
-
- jp.cafebabe.birthmarks.extractors.AbstractExtractor
-
- All Implemented Interfaces:
Extractor
,Task<BirthmarkType>
- Direct Known Subclasses:
KGramBasedBirthmarkExtractor
,VisitorBirthmarkExtractor
public abstract class AbstractExtractor extends AbstractTask<BirthmarkType> implements Extractor
-
-
Constructor Summary
Constructors Constructor Description AbstractExtractor(BirthmarkType type, Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Either<Exception,Birthmark<T>>
extractEach(Entry entry)
extract the birhtmark from the given entry.-
Methods inherited from class jp.cafebabe.birthmarks.AbstractTask
configuration, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jp.cafebabe.birthmarks.extractors.Extractor
extract, extractStream, type, visitor
-
Methods inherited from interface jp.cafebabe.birthmarks.Task
configuration, stripEither, stripOptional
-
-
-
-
Constructor Detail
-
AbstractExtractor
public AbstractExtractor(BirthmarkType type, Configuration config)
-
-
Method Detail
-
extractEach
public final <T> Either<Exception,Birthmark<T>> extractEach(Entry entry)
Description copied from interface:Extractor
extract the birhtmark from the given entry.- Specified by:
extractEach
in interfaceExtractor
- Type Parameters:
T
- element type of the extracted birthmarks- Parameters:
entry
- extracting source entry of DataSource- Returns:
- extracted birthmark from the given entry or some extraction error
-
-