Class AbstractElasticsearchSink

    • Field Detail

      • client

        protected final org.elasticsearch.client.RestHighLevelClient client
      • index

        protected final String index
      • forceString

        protected final boolean forceString
    • Constructor Detail

      • AbstractElasticsearchSink

        public AbstractElasticsearchSink​(List<org.apache.http.HttpHost> hosts,
                                         String index,
                                         boolean deleteIndex,
                                         boolean forceString,
                                         org.apache.http.client.CredentialsProvider credentials)
    • Method Detail

      • close

        public void close()
      • process

        public io.annot8.api.components.responses.ProcessorResponse process​(io.annot8.api.data.Item item)
      • itemToIndexRequests

        protected abstract List<org.elasticsearch.action.index.IndexRequest> itemToIndexRequests​(io.annot8.api.data.Item item)