@Override
        public int hashCode() {
            return Objects.hash(
                    httpHosts,
                    elasticsearchSinkFunction,
                    bulkRequestsConfig,
                    failureHandler,
                    restClientFactory,
                    inlongMetric);
        }
Creates the Elasticsearch sink.
Use {@link DirtySinkFailureHandler} when need sink dirty data

@return the created Elasticsearch sink.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/elasticsearch-7/src/main/java/org/apache/inlong/sort/elasticsearch7/ElasticsearchSink.java