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

Method getFields

src/java/org/apache/nutch/fetcher/FetcherJob.java:151–162  ·  view source on GitHub ↗
(Job job)

Source from the content-addressed store, hash-verified

149 }
150
151 public Collection<WebPage.Field> getFields(Job job) {
152 Collection<WebPage.Field> fields = new HashSet<WebPage.Field>(FIELDS);
153 if (job.getConfiguration().getBoolean(PARSE_KEY, false)) {
154 ParserJob parserJob = new ParserJob();
155 fields.addAll(parserJob.getFields(job));
156 }
157 ProtocolFactory protocolFactory = new ProtocolFactory(
158 job.getConfiguration());
159 fields.addAll(protocolFactory.getFields());
160
161 return fields;
162 }
163
164 @Override
165 public Map<String, Object> run(Map<String, Object> args) throws Exception {

Callers 1

runMethod · 0.95

Calls 3

getFieldsMethod · 0.95
getFieldsMethod · 0.95
getConfigurationMethod · 0.45

Tested by

no test coverage detected