Package org.apache.solr.search.grouping
Class GroupingSpecification
- java.lang.Object
-
- org.apache.solr.search.grouping.GroupingSpecification
-
public class GroupingSpecification extends Object
Encapsulates the grouping options like fields group sort and more specified by clients.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description GroupingSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getFields()
String[]
getFunctions()
SortSpec
getGroupSortSpec()
String[]
getQueries()
Grouping.Format
getResponseFormat()
SortSpec
getWithinGroupSortSpec()
boolean
isIncludeGroupCount()
boolean
isMain()
boolean
isNeedScore()
boolean
isTruncateGroups()
void
setFields(String[] fields)
void
setFunctions(String[] functions)
void
setGroupSortSpec(SortSpec groupSortSpec)
void
setIncludeGroupCount(boolean includeGroupCount)
void
setMain(boolean main)
void
setNeedScore(boolean needScore)
void
setQueries(String[] queries)
void
setResponseFormat(Grouping.Format responseFormat)
void
setTruncateGroups(boolean truncateGroups)
void
setWithinGroupSortSpec(SortSpec withinGroupSortSpec)
-
-
-
Method Detail
-
getFields
public String[] getFields()
-
setFields
public void setFields(String[] fields)
-
getQueries
public String[] getQueries()
-
setQueries
public void setQueries(String[] queries)
-
getFunctions
public String[] getFunctions()
-
setFunctions
public void setFunctions(String[] functions)
-
isIncludeGroupCount
public boolean isIncludeGroupCount()
-
setIncludeGroupCount
public void setIncludeGroupCount(boolean includeGroupCount)
-
isMain
public boolean isMain()
-
setMain
public void setMain(boolean main)
-
getResponseFormat
public Grouping.Format getResponseFormat()
-
setResponseFormat
public void setResponseFormat(Grouping.Format responseFormat)
-
isNeedScore
public boolean isNeedScore()
-
setNeedScore
public void setNeedScore(boolean needScore)
-
isTruncateGroups
public boolean isTruncateGroups()
-
setTruncateGroups
public void setTruncateGroups(boolean truncateGroups)
-
getGroupSortSpec
public SortSpec getGroupSortSpec()
-
setGroupSortSpec
public void setGroupSortSpec(SortSpec groupSortSpec)
-
getWithinGroupSortSpec
public SortSpec getWithinGroupSortSpec()
-
setWithinGroupSortSpec
public void setWithinGroupSortSpec(SortSpec withinGroupSortSpec)
-
-