org.nlpcn.es4sql.query.SqlElasticSearchRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-sql Show documentation
Show all versions of elasticsearch-sql Show documentation
Query elasticsearch using SQL
The newest version!
package org.nlpcn.es4sql.query;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestBuilder;
import org.elasticsearch.action.ActionResponse;
/**
* Created by Eliran on 19/8/2015.
*/
public class SqlElasticSearchRequestBuilder implements SqlElasticRequestBuilder {
ActionRequestBuilder requestBuilder;
public SqlElasticSearchRequestBuilder(ActionRequestBuilder requestBuilder) {
this.requestBuilder = requestBuilder;
}
@Override
public ActionRequest request() {
return requestBuilder.request();
}
@Override
public String explain() {
return requestBuilder.toString();
}
@Override
public ActionResponse get() {
return requestBuilder.get();
}
@Override
public ActionRequestBuilder getBuilder() {
return requestBuilder;
}
@Override
public String toString() {
return this.requestBuilder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy