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

Method setup

src/java/org/apache/nutch/crawl/InjectorJob.java:92–105  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

90 private long curTime;
91
92 @Override
93 protected void setup(Context context) throws IOException,
94 InterruptedException {
95 urlNormalizers = new URLNormalizers(context.getConfiguration(),
96 URLNormalizers.SCOPE_INJECT);
97 interval = context.getConfiguration().getInt("db.fetch.interval.default",
98 2592000);
99 filters = new URLFilters(context.getConfiguration());
100 scfilters = new ScoringFilters(context.getConfiguration());
101 scoreInjected = context.getConfiguration().getFloat("db.score.injected",
102 1.0f);
103 curTime = context.getConfiguration().getLong("injector.current.time",
104 System.currentTimeMillis());
105 }
106
107 protected void map(LongWritable key, Text value, Context context)
108 throws IOException, InterruptedException {

Callers

nothing calls this directly

Calls 3

getIntMethod · 0.80
getLongMethod · 0.80
getConfigurationMethod · 0.45

Tested by

no test coverage detected