org.apache.solr.client.solrj.response
public class GroupCommand extends Object implements Serializable
group.query
only one group is present and ngroups is always null
.Constructor and Description |
---|
GroupCommand(String name,
int matches)
Creates a GroupCommand instance
|
GroupCommand(String name,
int matches,
int nGroups)
Creates a GroupCommand instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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
).Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.