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

Method readFields

src/java/org/apache/nutch/metadata/Metadata.java:252–262  ·  view source on GitHub ↗
(DataInput in)

Source from the content-addressed store, hash-verified

250 }
251
252 public final void readFields(DataInput in) throws IOException {
253 int keySize = in.readInt();
254 String key;
255 for (int i = 0; i < keySize; i++) {
256 key = Text.readString(in);
257 int valueSize = in.readInt();
258 for (int j = 0; j < valueSize; j++) {
259 add(key, Text.readString(in));
260 }
261 }
262 }
263
264}

Callers 1

writeReadMethod · 0.95

Calls 1

addMethod · 0.95

Tested by 1

writeReadMethod · 0.76