/** * @return The comparator serialized using pb */ @Override public byte [] toByteArray() { ComparatorProtos.BitComparator.Builder builder = ComparatorProtos.BitComparator.newBuilder(); builder.setComparable(ProtobufUtil.toByteArrayComparable(this.value)); ComparatorProtos.BitComparator.BitwiseOp bitwiseOpPb = ComparatorProtos.BitComparator.BitwiseOp.valueOf(bitOperator.name()); builder.setBitwiseOp(bitwiseOpPb); return builder.build().toByteArray(); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } if (other.hasBitwiseOp()) { setBitwiseOp(other.getBitwiseOp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * @return The comparator serialized using pb */ @Override public byte [] toByteArray() { ComparatorProtos.BitComparator.Builder builder = ComparatorProtos.BitComparator.newBuilder(); builder.setComparable(ProtobufUtil.toByteArrayComparable(this.value)); ComparatorProtos.BitComparator.BitwiseOp bitwiseOpPb = ComparatorProtos.BitComparator.BitwiseOp.valueOf(bitOperator.name()); builder.setBitwiseOp(bitwiseOpPb); return builder.build().toByteArray(); }
/** * @return The comparator serialized using pb */ @Override public byte [] toByteArray() { ComparatorProtos.BitComparator.Builder builder = ComparatorProtos.BitComparator.newBuilder(); builder.setComparable(ProtobufUtil.toByteArrayComparable(this.value)); ComparatorProtos.BitComparator.BitwiseOp bitwiseOpPb = ComparatorProtos.BitComparator.BitwiseOp.valueOf(bitOperator.name()); builder.setBitwiseOp(bitwiseOpPb); return builder.build().toByteArray(); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ComparatorProtos.BitComparator.getDefaultInstance()) return this; if (other.hasComparable()) { mergeComparable(other.getComparable()); } if (other.hasBitwiseOp()) { setBitwiseOp(other.getBitwiseOp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }