/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof NullComparator)) return false; return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BinaryPrefixComparator)) return false; return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ boolean areSerializedFieldsEqual(LongComparator other) { if (other == this) return true; return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BinaryComparator)) return false; return super.areSerializedFieldsEqual(other); } }
/** * @param other the other comparator * @return true if and only if the fields of the comparator that are serialized are equal to the * corresponding fields in other. Used for testing. */ boolean areSerializedFieldsEqual(BigDecimalComparator other) { if (other == this) { return true; } return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof SubstringComparator)) return false; SubstringComparator comparator = (SubstringComparator)other; return super.areSerializedFieldsEqual(comparator) && this.substr.equals(comparator.substr); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BitComparator)) return false; BitComparator comparator = (BitComparator)other; return super.areSerializedFieldsEqual(other) && this.getOperator().equals(comparator.getOperator()); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof RegexStringComparator)) return false; RegexStringComparator comparator = (RegexStringComparator)other; return super.areSerializedFieldsEqual(comparator) && engine.getClass().isInstance(comparator.getEngine()) && engine.getPattern().equals(comparator.getEngine().getPattern()) && engine.getFlags() == comparator.getEngine().getFlags() && engine.getCharset().equals(comparator.getEngine().getCharset()); }
/** * * @param o * @return true if and only if the fields of the filter that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(Filter o) { if (o == this) return true; if (!(o instanceof CompareFilter)) return false; CompareFilter other = (CompareFilter)o; return this.getCompareOperator().equals(other.getCompareOperator()) && (this.getComparator() == other.getComparator() || this.getComparator().areSerializedFieldsEqual(other.getComparator())); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BinaryPrefixComparator)) return false; return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof NullComparator)) return false; return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ boolean areSerializedFieldsEqual(LongComparator other) { if (other == this) return true; return super.areSerializedFieldsEqual(other); } }
/** * @param other the other comparator * @return true if and only if the fields of the comparator that are serialized are equal to the * corresponding fields in other. Used for testing. */ boolean areSerializedFieldsEqual(BigDecimalComparator other) { if (other == this) { return true; } return super.areSerializedFieldsEqual(other); } }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BinaryComparator)) return false; return super.areSerializedFieldsEqual(other); } }
@Override boolean areSerializedFieldsEqual(Filter o) { if (o == this) { return true; } else if (!(o instanceof ColumnValueFilter)) { return false; } ColumnValueFilter other = (ColumnValueFilter) o; return Bytes.equals(this.getFamily(), other.getFamily()) && Bytes.equals(this.getQualifier(), other.getQualifier()) && this.getCompareOperator().equals(other.getCompareOperator()) && this.getComparator().areSerializedFieldsEqual(other.getComparator()); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof SubstringComparator)) return false; SubstringComparator comparator = (SubstringComparator)other; return super.areSerializedFieldsEqual(comparator) && this.substr.equals(comparator.substr); }
/** * @return true if and only if the fields of the filter that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(Filter o) { if (o == this) return true; if (!(o instanceof SingleColumnValueFilter)) return false; SingleColumnValueFilter other = (SingleColumnValueFilter)o; return Bytes.equals(this.getFamily(), other.getFamily()) && Bytes.equals(this.getQualifier(), other.getQualifier()) && this.op.equals(other.op) && this.getComparator().areSerializedFieldsEqual(other.getComparator()) && this.getFilterIfMissing() == other.getFilterIfMissing() && this.getLatestVersionOnly() == other.getLatestVersionOnly(); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof BitComparator)) return false; BitComparator comparator = (BitComparator)other; return super.areSerializedFieldsEqual(other) && this.getOperator().equals(comparator.getOperator()); }
/** * @param other * @return true if and only if the fields of the comparator that are serialized * are equal to the corresponding fields in other. Used for testing. */ @Override boolean areSerializedFieldsEqual(ByteArrayComparable other) { if (other == this) return true; if (!(other instanceof RegexStringComparator)) return false; RegexStringComparator comparator = (RegexStringComparator)other; return super.areSerializedFieldsEqual(comparator) && engine.getClass().isInstance(comparator.getEngine()) && engine.getPattern().equals(comparator.getEngine().getPattern()) && engine.getFlags() == comparator.getEngine().getFlags() && engine.getCharset().equals(comparator.getEngine().getCharset()); }
@Override boolean areSerializedFieldsEqual(Filter o) { if (o == this) { return true; } else if (!(o instanceof ColumnValueFilter)) { return false; } ColumnValueFilter other = (ColumnValueFilter) o; return Bytes.equals(this.getFamily(), other.getFamily()) && Bytes.equals(this.getQualifier(), other.getQualifier()) && this.getCompareOperator().equals(other.getCompareOperator()) && this.getComparator().areSerializedFieldsEqual(other.getComparator()); }