Class ElasticsearchSource

  • All Implemented Interfaces:
    PausableSource, Source, org.elasticsearch.common.xcontent.DeprecationHandler

    public class ElasticsearchSource
    extends AbstractPausableSource
    implements org.elasticsearch.common.xcontent.DeprecationHandler
    • Constructor Detail

      • ElasticsearchSource

        protected ElasticsearchSource​(org.elasticsearch.client.RestHighLevelClient client,
                                      String query,
                                      int size,
                                      String scrollKeepAlive,
                                      String[] sourceIncludes,
                                      String[] sourceExcludes)
      • ElasticsearchSource

        protected ElasticsearchSource​(org.elasticsearch.client.RestHighLevelClient client,
                                      String query,
                                      int size,
                                      String scrollKeepAlive)
    • Method Detail

      • usedDeprecatedName

        public void usedDeprecatedName​(String parserName,
                                       Supplier<org.elasticsearch.common.xcontent.XContentLocation> location,
                                       String usedName,
                                       String modernName)
        Specified by:
        usedDeprecatedName in interface org.elasticsearch.common.xcontent.DeprecationHandler
      • usedDeprecatedField

        public void usedDeprecatedField​(String parserName,
                                        Supplier<org.elasticsearch.common.xcontent.XContentLocation> location,
                                        String usedName,
                                        String replacedWith)
        Specified by:
        usedDeprecatedField in interface org.elasticsearch.common.xcontent.DeprecationHandler
      • usedDeprecatedField

        public void usedDeprecatedField​(String parserName,
                                        Supplier<org.elasticsearch.common.xcontent.XContentLocation> location,
                                        String usedName)
        Specified by:
        usedDeprecatedField in interface org.elasticsearch.common.xcontent.DeprecationHandler