@Override public void write(DataOutput out) throws IOException { //serialize path, offset, length using FileSplit super.write(out); int flags = (hasBase ? OrcSplit.BASE_FLAG : 0) | (isOriginal ? OrcSplit.ORIGINAL_FLAG : 0) | (hasFooter ? OrcSplit.FOOTER_FLAG : 0); out.writeByte(flags); out.writeInt(deltas.size()); for(AcidInputFormat.DeltaMetaData delta: deltas) { delta.write(out); } if (hasFooter) { OrcProto.FileTail fileTail = orcTail.getMinimalFileTail(); byte[] tailBuffer = fileTail.toByteArray(); int tailLen = tailBuffer.length; WritableUtils.writeVInt(out, tailLen); out.write(tailBuffer); } }
@Override public void write(DataOutput out) throws IOException { //serialize path, offset, length using FileSplit super.write(out); int flags = (hasBase ? OrcSplit.BASE_FLAG : 0) | (isOriginal ? OrcSplit.ORIGINAL_FLAG : 0) | (hasFooter ? OrcSplit.FOOTER_FLAG : 0); out.writeByte(flags); out.writeInt(deltas.size()); for(AcidInputFormat.DeltaMetaData delta: deltas) { delta.write(out); } if (hasFooter) { OrcProto.FileTail fileTail = orcTail.getMinimalFileTail(); byte[] tailBuffer = fileTail.toByteArray(); int tailLen = tailBuffer.length; WritableUtils.writeVInt(out, tailLen); out.write(tailBuffer); } }
public void write(DataOutput out) throws IOException { fs.write(out); } public void readFields(DataInput in) throws IOException {
public void write(DataOutput out) throws IOException { fs.write(out); } public void readFields(DataInput in) throws IOException {
public void write(DataOutput out) throws IOException { fs.write(out); } public void readFields(DataInput in) throws IOException {
@Override public void write(DataOutput out) throws IOException { super.write(out); out.writeInt(index); }
@Override public void write(DataOutput out) throws IOException { super.write(out); out.writeInt(index); }
@Override public void write(DataOutput out) throws IOException { super.write(out); split.write(out); }
@Override public void write(DataOutput out) throws IOException { super.write(out); split.write(out); }
@Override public void write(DataOutput out) throws IOException { header.write(out); super.write(out); }
@Override public void write(DataOutput out) throws IOException { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } }
@Override public void write(DataOutput out) throws IOException { super.write(out); if (indexPath == null) { out.writeBoolean(false); } else { out.writeBoolean(true); WritableUtils.writeString(out, indexPath.toString()); } WritableUtils.writeVLong(out, startTime); WritableUtils.writeVLong(out, endTime); }
@Override public void write(final DataOutput out) throws IOException { super.write(out); Text.writeString(out, getKeyField()); }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { out.writeBoolean(this.isMaster()); if(!this.isMaster()) { int length = this.getFileSplits().length; out.writeInt(length); for(int i = 0; i < length; i++) { this.getFileSplits()[i].write(out); } } }
@Override public void write(DataOutput out) throws IOException { super.write(out); BufferDelayedWriter writer = new BufferDelayedWriter(); params.write(writer); writer.writeBuffer(out); }