Aggregate class to represent the result of an aggregate query
Since
4/5/2024
Group Moxygen
Author Zackary Frazier
Standard constructor, creates an Aggregate object from an AggregateResult
public Aggregate(AggregateResult ar)
Name | Type | Description |
---|---|---|
ar | AggregateResult | the AggregateResult to create the Aggregate from |
Constructor for testing purposes, creates an Aggregate object from a Map
public Aggregate(Map<String,Object> data)
Name | Type | Description |
---|---|---|
data | Map<String,Object> | the data to create the Aggregate from |
get the value of a field
public Object get(String field)
Name | Type | Description |
---|---|---|
field | String | the field to get |
Object
the value of the field
get the value of the aggregate as a String
public override String toString()
String
the value of the field as a string