Class ElasticsearchDataHandler

    • Constructor Detail

      • ElasticsearchDataHandler

        public ElasticsearchDataHandler()
    • Method Detail

      • persist

        public org.elasticsearch.action.index.IndexResponse persist​(Map<String,​Object> dataMap)
                                                             throws org.elasticsearch.ElasticsearchGenerationException,
                                                                    IOException
        Description copied from interface: IStatisticsDataHandler
        Persist the date to the database
        Specified by:
        persist in interface IStatisticsDataHandler
        Parameters:
        dataMap - keys are property names and the values are the objects
        Returns:
        the response
        Throws:
        org.elasticsearch.ElasticsearchGenerationException - If an error occurs
        IOException - If an error occurs
      • getClient

        public org.elasticsearch.client.RestHighLevelClient getClient()
        Description copied from interface: IStatisticsDataHandler
        Returns the underlying elasticsearch client
        Specified by:
        getClient in interface IStatisticsDataHandler
        Returns:
        the opened ready to used client.