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

Method write

src/org/apache/pig/data/DefaultTuple.java:497–505  ·  view source on GitHub ↗
(DataOutput out)

Source from the content-addressed store, hash-verified

495 }
496
497 @Override
498 public void write(DataOutput out) throws IOException {
499 out.writeByte(DataType.TUPLE);
500 int sz = size();
501 out.writeInt(sz);
502 for (int i = 0; i < sz; i++) {
503 DataReaderWriter.writeDatum(out, mFields.get(i));
504 }
505 }
506
507 @Override
508 public void readFields(DataInput in) throws IOException {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
writeDatumMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected