S - T - public class ExtractorUnion<S,T> extends Extractor<S,T>
| Constructor and Description |
|---|
ExtractorUnion()
Constructs an empty extractor that will return an empty set of results
from any given input.
|
ExtractorUnion(List<Extractor<S,T>> extractors)
Constructs a new extractor that returns the union of the output from each
of the given extractors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtractor(Extractor<S,T> extractor)
Adds the given extractor to the union.
|
protected Collection<T> |
extractCandidates(S source)
Returns the results from each extractor.
|
addMapper, compose, extract, getMapperspublic ExtractorUnion()
public void addExtractor(Extractor<S,T> extractor)
extractor - protected Collection<T> extractCandidates(S source) throws ExtractorException
extractCandidates in class Extractor<S,T>source - the source to extract from.ExtractorException - if unable to extractCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.