package com.cadrlife.devsearch.esplugin.domain;
import java.util.*;
public class GroupedSearchResult {
private String query = "";
private List<SearchResultItemGroup> itemsByProject = new ArrayList<>();
private Map<String, Long> fileTypeCounts = new HashMap<>();
private Map<String, Long> repoCounts = new HashMap<>();
private long totalHits;
private long totalProjectHits;
public String getQuery() {
return query;
}
public GroupedSearchResult setQuery(String query) {
this.query = query;
return this;
}
public long getTotalHits() {
return totalHits;
}
public GroupedSearchResult setTotalHits(long totalHits) {
this.totalHits = totalHits;
return this;
}
public List<SearchResultItemGroup> getItemsByProject() {
return itemsByProject;
}
public GroupedSearchResult setItemsByProject(List<SearchResultItemGroup> immutableList) {
this.itemsByProject = immutableList;
return this;
}
public long getTotalProjectHits() {
return totalProjectHits;
}
public GroupedSearchResult setTotalProjectHits(long totalProjectHits) {
this.totalProjectHits = totalProjectHits;
return this;
}
public Map<String, Long> getFileTypeCounts() {
return fileTypeCounts;
}
public GroupedSearchResult setFileTypeCounts(Map<String, Long> fileTypeCounts) {
this.fileTypeCounts = fileTypeCounts;
return this;
}
public Map<String, Long> getRepoCounts() {
return repoCounts;
}
public void setRepoCounts(Map<String, Long> repoCounts) {
this.repoCounts = repoCounts;
}
}