@Override public int hashCode() {
    int result = dataSchema != null ? dataSchema.hashCode() : 0;
    result = 31 * result + (tuningConfig != null ? tuningConfig.hashCode() : 0);
    result = 31 * result + (ioConfig != null ? ioConfig.hashCode() : 0);
    result = 31 * result + (context != null ? context.hashCode() : 0);
    return result;
  }
This class is copied from druid source code
in order to avoid adding additional dependencies on druid-indexing-service.
druid-handler/src/java/org/apache/hadoop/hive/druid/json/KafkaSupervisorSpec.java