public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, columnId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, ascending_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, nullFirst_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, columnId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, ascending_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, nullFirst_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasColumnId()) { hash = (37 * hash) + COLUMNID_FIELD_NUMBER; hash = (53 * hash) + getColumnId(); } if (hasAscending()) { hash = (37 * hash) + ASCENDING_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getAscending()); } if (hasNullFirst()) { hash = (37 * hash) + NULLFIRST_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getNullFirst()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.proto.CatalogProtos.TupleComparatorSpecProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.TupleComparatorSpecProto other = (org.apache.tajo.catalog.proto.CatalogProtos.TupleComparatorSpecProto) obj; boolean result = true; result = result && (hasColumnId() == other.hasColumnId()); if (hasColumnId()) { result = result && (getColumnId() == other.getColumnId()); } result = result && (hasAscending() == other.hasAscending()); if (hasAscending()) { result = result && (getAscending() == other.getAscending()); } result = result && (hasNullFirst() == other.hasNullFirst()); if (hasNullFirst()) { result = result && (getNullFirst() == other.getNullFirst()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.TupleComparatorSpecProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.TupleComparatorSpecProto.getDefaultInstance()) return this; if (other.hasColumnId()) { setColumnId(other.getColumnId()); } if (other.hasAscending()) { setAscending(other.getAscending()); } if (other.hasNullFirst()) { setNullFirst(other.getNullFirst()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }