public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPositionsList().size() > 0) { output.writeRawVarint32(10); output.writeRawVarint32(positionsMemoizedSerializedSize); } for (int i = 0; i < positions_.size(); i++) { output.writeUInt64NoTag(positions_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, statistics_); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < positions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(positions_.get(i)); } size += dataSize; if (!getPositionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } positionsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, statistics_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(org.apache.orc.OrcProto.RowIndexEntry other) { if (other == org.apache.orc.OrcProto.RowIndexEntry.getDefaultInstance()) return this; if (!other.positions_.isEmpty()) { if (positions_.isEmpty()) { positions_ = other.positions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePositionsIsMutable(); positions_.addAll(other.positions_); } onChanged(); } if (other.hasStatistics()) { mergeStatistics(other.getStatistics()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }