Class ElasticsearchDataSink<InputT>

  • Type Parameters:
    InputT - The type of input elements that this sink can process.
    All Implemented Interfaces:
    Serializable, DataSink

    public class ElasticsearchDataSink<InputT>
    extends Object
    implements DataSink, Serializable
    An implementation of DataSink for writing events to Elasticsearch.

    This class is responsible for configuring and managing the lifecycle of an Elasticsearch sink, including handling different versions of Elasticsearch (6, 7, 8).

    See Also:
    Serialized Form
    • Constructor Detail

      • ElasticsearchDataSink

        public ElasticsearchDataSink​(ElasticsearchSinkOptions elasticsearchOptions,
                                     java.time.ZoneId zoneId)
        Constructs an ElasticsearchDataSink with the given options and time zone.
        Parameters:
        elasticsearchOptions - The Elasticsearch sink options.
        zoneId - The time zone ID for handling time-related operations.