All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.frameworkset.elasticsearch.entity.ESDatas Maven / Gradle / Ivy

Go to download

bboss elasticsearch client with restful and java api without elasticsearch jar dependended.

There is a newer version: 7.2.8
Show newest version
package org.frameworkset.elasticsearch.entity;

import java.util.List;
import java.util.Map;

/**
 * 查询的结果集
 * @param 
 */
public class ESDatas extends BaseHitsTotal {

	/**
	 * 当前获取的记录集合
	 */
	private List datas;
	private Map> aggregations;
	private String scrollId;
	private BaseRestResponse restResponse;



	public List getDatas() {
		return datas;
	}

	public void setDatas(List datas) {
		this.datas = datas;
	}

	public Map> getAggregations() {
		return aggregations;
	}
	public List> getAggregationBuckets(String buckets) {
		if(aggregations != null && aggregations.size() > 0) {
			Map temp = aggregations.get(buckets);
			if(temp != null){
				return (List>)temp.get("buckets");
			}
		}
		return null;
	}




	public void setAggregations(Map> aggregations) {
		this.aggregations = aggregations;
	}

	public String getScrollId() {
		return scrollId;
	}

	public void setScrollId(String scrollId) {
		this.scrollId = scrollId;
	}

	public BaseRestResponse getRestResponse() {
		return restResponse;
	}

	public void setRestResponse(BaseRestResponse restResponse) {
		this.restResponse = restResponse;
	}

	public String getTotalRelation() {
		return totalRelation;
	}

	public void setTotalRelation(String totalRelation) {
		this.totalRelation = totalRelation;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy