Modifier and Type | Field and Description |
---|---|
private Map<String,Analyzer> |
analyzers |
static String |
LIST_ANALYZERS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
SimpleAnalyzerManager(List<AbstractAnalyzer> listAnalyzers)
Receives the array of String injected by Spring
and crates new instances of classes that implements the Analyzer
interface
|
SimpleAnalyzerManager(UriCollector uriCollector,
String... analyzers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Iterator<byte[]> |
analyze(org.dice_research.squirrel.data.uri.CrawleableUri curi,
File data,
org.dice_research.squirrel.sink.Sink sink)
It iterates over all the Analyzers created and added to the
analyzers map and check if they are eligible to be executed by
invoking isEligible().
|
boolean |
isElegible(org.dice_research.squirrel.data.uri.CrawleableUri curi,
File data) |
private static final org.slf4j.Logger LOGGER
public static final String LIST_ANALYZERS
@Deprecated public SimpleAnalyzerManager(UriCollector uriCollector, String... analyzers)
uriCollector
- The collector used to create a new Analyzeranalyzers
- Array of Strings, containing the full class name used to create a new instance of an Analyzerpublic SimpleAnalyzerManager(List<AbstractAnalyzer> listAnalyzers)
uriCollector
- The collector used to create a new Analyzeranalyzers
- Array of Strings, containing the full class name used to create a new instance of an Analyzerpublic Iterator<byte[]> analyze(org.dice_research.squirrel.data.uri.CrawleableUri curi, File data, org.dice_research.squirrel.sink.Sink sink)
public boolean isElegible(org.dice_research.squirrel.data.uri.CrawleableUri curi, File data)
isElegible
in interface Analyzer
Copyright © 2017–2020. All rights reserved.