@Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    SamzaSqlRelMessage other = (SamzaSqlRelMessage) obj;
    return Objects.equals(key, other.key) && Objects.equals(samzaSqlRelRecord, other.samzaSqlRelRecord);
  }
Creates the SamzaSqlRelMessage from {@link SamzaSqlRelRecord}.
@param samzaSqlRelRecord represents the rel record.
@param metadata the message/event's metadata
samza-sql/src/main/java/org/apache/samza/sql/data/SamzaSqlRelMessage.java