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

Method set

src/java/org/apache/nutch/metadata/Metadata.java:159–161  ·  view source on GitHub ↗

Set metadata name/value. Associate the specified value to the specified metadata name. If some previous values were associated to this name, they are removed. @param name the metadata name. @param value the metadata value.

(String name, String value)

Source from the content-addressed store, hash-verified

157 * the metadata value.
158 */
159 public void set(String name, String value) {
160 metadata.put(name, new String[] { value });
161 }
162
163 /**
164 * Remove a metadata and all its associated values.

Callers 15

getParseMethod · 0.95
extractTextMethod · 0.95
getFileProtocolOutputMethod · 0.95
addToMapMethod · 0.95
testSetMethod · 0.95
addMethod · 0.95
getFileAsHttpResponseMethod · 0.45
getDirAsHttpResponseMethod · 0.45
testRelTagParserMethod · 0.45
FileResponseMethod · 0.45
getFileAsHttpResponseMethod · 0.45

Calls 1

putMethod · 0.45

Tested by 15

testSetMethod · 0.76
testRelTagParserMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
testJsoupHtmlParserMethod · 0.36
testFetchMethod · 0.36
testSitemapFetchMethod · 0.36
testSitemapDetectMethod · 0.36
testAgentNameCheckMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36