public class AggregateQuerySnapshot
The results of executing an AggregateQuery.
Methods
equals(Object object)
public boolean equals(Object object)
Compares this object with the given object for equality.
This object is considered "equal" to the other object if and only if all of the following conditions are satisfied:
object
is a non-null instance of AggregateQuerySnapshot.- The AggregateQuery of
object
compares equal to that of this object. object
has the same results as this object.
Parameter | |
---|---|
Name | Description |
object | Object The object to compare to this object for equality. |
Returns | |
---|---|
Type | Description |
boolean |
|
getCount()
public long getCount()
Returns the number of documents in the result set of the underlying query.
Returns | |
---|---|
Type | Description |
long |
getQuery()
public AggregateQuery getQuery()
Returns the query that was executed to produce this result.
Returns | |
---|---|
Type | Description |
AggregateQuery |
getReadTime()
public Timestamp getReadTime()
Returns the time at which this snapshot was read.
Returns | |
---|---|
Type | Description |
com.google.cloud.Timestamp |
hashCode()
public int hashCode()
Calculates and returns the hash code for this object.
Returns | |
---|---|
Type | Description |
int | the hash code for this object. |