MCPcopy Create free account
hub / github.com/apache/nutch / getFields

Method getFields

src/java/org/apache/nutch/parse/ParserJob.java:213–235  ·  view source on GitHub ↗
(Job job)

Source from the content-addressed store, hash-verified

211 }
212
213 public Collection<WebPage.Field> getFields(Job job) {
214 Configuration conf = job.getConfiguration();
215 Collection<WebPage.Field> fields = new HashSet<WebPage.Field>(FIELDS);
216 ParserFactory parserFactory = new ParserFactory(conf);
217 ParseFilters parseFilters = new ParseFilters(conf);
218
219 Collection<WebPage.Field> parsePluginFields = parserFactory.getFields();
220 Collection<WebPage.Field> signaturePluginFields = SignatureFactory
221 .getFields(conf);
222 Collection<WebPage.Field> htmlParsePluginFields = parseFilters.getFields();
223
224 if (parsePluginFields != null) {
225 fields.addAll(parsePluginFields);
226 }
227 if (signaturePluginFields != null) {
228 fields.addAll(signaturePluginFields);
229 }
230 if (htmlParsePluginFields != null) {
231 fields.addAll(htmlParsePluginFields);
232 }
233
234 return fields;
235 }
236
237 @Override
238 public Configuration getConf() {

Callers 2

getFieldsMethod · 0.95
runMethod · 0.95

Calls 4

getFieldsMethod · 0.95
getFieldsMethod · 0.95
getFieldsMethod · 0.95
getConfigurationMethod · 0.45

Tested by

no test coverage detected