Class AggregateQuerySnapshot (3.11.0)

public class AggregateQuerySnapshot

The results of executing an AggregateQuery.

Inheritance

Object > AggregateQuerySnapshot

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:

  1. object is a non-null instance of AggregateQuerySnapshot.
  2. The AggregateQuery of object compares equal to that of this object.
  3. object has the same results as this object.
Parameter
NameDescription
objectObject

The object to compare to this object for equality.

Returns
TypeDescription
boolean

true if this object is "equal" to the given object, as defined above, or false otherwise.

Overrides

getCount()

public long getCount()

Returns the number of documents in the result set of the underlying query.

Returns
TypeDescription
long

getQuery()

public AggregateQuery getQuery()

Returns the query that was executed to produce this result.

Returns
TypeDescription
AggregateQuery

getReadTime()

public Timestamp getReadTime()

Returns the time at which this snapshot was read.

Returns
TypeDescription
com.google.cloud.Timestamp

hashCode()

public int hashCode()

Calculates and returns the hash code for this object.

Returns
TypeDescription
int

the hash code for this object.

Overrides