public class GroupCommand
extends java.lang.Object
implements java.io.Serializable
group.query only one group is present and ngroups is always null.| Modifier and Type | Field and Description |
|---|---|
private int |
_matches |
private java.lang.String |
_name |
private java.lang.Integer |
_ngroups |
private java.util.List<Group> |
_values |
| Constructor and Description |
|---|
GroupCommand(java.lang.String name,
int matches)
Creates a GroupCommand instance
|
GroupCommand(java.lang.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.
|
java.lang.String |
getName()
Returns the name of this command.
|
java.lang.Integer |
getNGroups()
Returns the total number of groups found for this command.
|
java.util.List<Group> |
getValues()
Returns the groups to be displayed.
|
private final java.lang.String _name
private final java.util.List<Group> _values
private final int _matches
private final java.lang.Integer _ngroups
public GroupCommand(java.lang.String name,
int matches)
name - The name of this commandmatches - The total number of documents found for this commandpublic GroupCommand(java.lang.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 java.lang.String getName()
public void add(Group group)
group - A group to be addedpublic java.util.List<Group> getValues()
start and rows parameters.public int getMatches()
public java.lang.Integer getNGroups()
null if the group.ngroups parameter is unset or false or
if this is a group command query (parameter = group.query).