@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator other = (org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasSerializedComparator() == other.hasSerializedComparator()); if (hasSerializedComparator()) { result = result && getSerializedComparator() .equals(other.getSerializedComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>required .hbase.pb.Comparator comparator = 5;</code> */ public Builder mergeComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator value) { if (comparatorBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && comparator_ != org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance()) { comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.newBuilder(comparator_).mergeFrom(value).buildPartial(); } else { comparator_ = value; } onChanged(); } else { comparatorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
if (hasComparator()) { result = result && getComparator() .equals(other.getComparator());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter other = (org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter) obj; boolean result = true; result = result && (hasCompareOp() == other.hasCompareOp()); if (hasCompareOp()) { result = result && (getCompareOp() == other.getCompareOp()); } result = result && (hasComparator() == other.hasComparator()); if (hasComparator()) { result = result && getComparator() .equals(other.getComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * Convert a protocol buffer Comparator to a ByteArrayComparable * * @param proto the protocol buffer Comparator to convert * @return the converted ByteArrayComparable */ @SuppressWarnings("unchecked") public static ByteArrayComparable toComparator(ComparatorProtos.Comparator proto) throws IOException { String type = proto.getName(); String funcName = "parseFrom"; byte [] value = proto.getSerializedComparator().toByteArray(); try { Class<? extends ByteArrayComparable> c = (Class<? extends ByteArrayComparable>)Class.forName(type, true, CLASS_LOADER); Method parseFrom = c.getMethod(funcName, byte[].class); if (parseFrom == null) { throw new IOException("Unable to locate function: " + funcName + " in type: " + type); } return (ByteArrayComparable)parseFrom.invoke(null, value); } catch (Exception e) { throw new IOException(e); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter other = (org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter) obj; boolean result = true; result = result && (hasCompareOp() == other.hasCompareOp()); if (hasCompareOp()) { result = result && (getCompareOp() == other.getCompareOp()); } result = result && (hasComparator() == other.hasComparator()); if (hasComparator()) { result = result && getComparator() .equals(other.getComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter other = (org.apache.hadoop.hbase.protobuf.generated.FilterProtos.CompareFilter) obj; boolean result = true; result = result && (hasCompareOp() == other.hasCompareOp()); if (hasCompareOp()) { result = result && (getCompareOp() == other.getCompareOp()); } result = result && (hasComparator() == other.hasComparator()); if (hasComparator()) { result = result && getComparator() .equals(other.getComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator other = (org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasSerializedComparator() == other.hasSerializedComparator()); if (hasSerializedComparator()) { result = result && getSerializedComparator() .equals(other.getSerializedComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator other = (org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasSerializedComparator() == other.hasSerializedComparator()); if (hasSerializedComparator()) { result = result && getSerializedComparator() .equals(other.getSerializedComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator)) { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator other = (org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasSerializedComparator() == other.hasSerializedComparator()); if (hasSerializedComparator()) { result = result && getSerializedComparator() .equals(other.getSerializedComparator()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * Convert a protocol buffer Comparator to a ByteArrayComparable * * @param proto the protocol buffer Comparator to convert * @return the converted ByteArrayComparable */ @SuppressWarnings("unchecked") public static ByteArrayComparable toComparator(ComparatorProtos.Comparator proto) throws IOException { String type = proto.getName(); String funcName = "parseFrom"; byte [] value = proto.getSerializedComparator().toByteArray(); try { Class<?> c = Class.forName(type, true, ClassLoaderHolder.CLASS_LOADER); Method parseFrom = c.getMethod(funcName, byte[].class); if (parseFrom == null) { throw new IOException("Unable to locate function: " + funcName + " in type: " + type); } return (ByteArrayComparable)parseFrom.invoke(null, value); } catch (Exception e) { throw new IOException(e); } }
/** * <code>required .Comparator comparator = 5;</code> */ public Builder mergeComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator value) { if (comparatorBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && comparator_ != org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance()) { comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.newBuilder(comparator_).mergeFrom(value).buildPartial(); } else { comparator_ = value; } onChanged(); } else { comparatorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**