
io.searchbox.core.CountResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jest-common Show documentation
Show all versions of jest-common Show documentation
ElasticSearch Java REST client - shared library package
package io.searchbox.core;
import com.google.gson.Gson;
import io.searchbox.client.JestResult;
import java.util.List;
/**
* @author cihat.keser
*/
public class CountResult extends JestResult {
public CountResult(CountResult countResult) {
super(countResult);
}
public CountResult(Gson gson) {
super(gson);
}
@Override
@Deprecated
public T getSourceAsObject(Class clazz) {
return super.getSourceAsObject(clazz);
}
@Override
@Deprecated
public List getSourceAsObjectList(Class type) {
return super.getSourceAsObjectList(type);
}
public Double getCount() {
Double count = null;
if (isSucceeded) {
count = getSourceAsObject(Double.class);
}
return count;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy