@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ReaderWriterSchemaPair that = (ReaderWriterSchemaPair) o;

    if (!reader.equals(that.reader)) return false;
    if (!writer.equals(that.writer)) return false;

    return true;
  }
Simple pair class used for memoizing schema-reencoding operations.
serde/src/java/org/apache/hadoop/hive/serde2/avro/ReaderWriterSchemaPair.java