|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.client.solrj.response.GroupCommand
public class GroupCommand
This class represents the result of a group command. This can be the result of the following parameter:
group.query
only one group is present and ngroups is always null
.
Constructor Summary | |
---|---|
GroupCommand(String name,
int matches)
Creates a GroupCommand instance |
|
GroupCommand(String name,
int matches,
int nGroups)
Creates a GroupCommand instance. |
Method Summary | |
---|---|
void |
add(Group group)
Adds a group to this command. |
int |
getMatches()
Returns the total number of documents found for this command. |
String |
getName()
Returns the name of this command. |
Integer |
getNGroups()
Returns the total number of groups found for this command. |
List<Group> |
getValues()
Returns the groups to be displayed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupCommand(String name, int matches)
name
- The name of this commandmatches
- The total number of documents found for this commandpublic GroupCommand(String name, int matches, int nGroups)
name
- The name of this commandmatches
- The total number of documents found for this commandnGroups
- The total number of groups found for this command.Method Detail |
---|
public String getName()
public void add(Group group)
group
- A group to be addedpublic List<Group> getValues()
start
and rows
parameters.
public int getMatches()
public Integer getNGroups()
null
if the group.ngroups
parameter is unset or false
or
if this is a group command query (parameter = group.query
).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |