KeyTopHitModel.java 661 Bytes
package com.yoho.search.models.aggregations;

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

public class KeyTopHitModel {

	private String key;
	private long docCount;
	private List<Map<String, Object>> topHitList = new ArrayList<Map<String, Object>>();

	public KeyTopHitModel(String key, long docCount, List<Map<String, Object>> topHitList) {
		this.key = key;
		this.docCount = docCount;
		this.topHitList = topHitList;
	}

	public String getKey() {
		return key;
	}

	public long getDocCount() {
		return docCount;
	}

	public List<Map<String, Object>> getTopHitList() {
		return topHitList;
	}

}