MCPcopy Create free account
hub / github.com/apache/pig / write

Method write

src/org/apache/pig/data/TargetedTuple.java:69–80  ·  view source on GitHub ↗
(DataOutput out)

Source from the content-addressed store, hash-verified

67 }
68
69 @Override
70 public void write(DataOutput out) throws IOException {
71 t.write(out);
72 out.writeInt(targetOps.size());
73 for (OperatorKey target : targetOps) {
74 // Ideally I should be able to call target.write(out).
75 // Since it doesn't support it yet handling it here
76 out.writeInt(target.scope.length());
77 out.writeBytes(target.scope);
78 out.writeLong(target.id);
79 }
80 }
81
82 @Override
83 public void readFields(DataInput in) throws IOException {

Callers

nothing calls this directly

Calls 4

lengthMethod · 0.80
writeLongMethod · 0.80
sizeMethod · 0.65
writeBytesMethod · 0.45

Tested by

no test coverage detected