Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.25 KB

Aggregate.md

File metadata and controls

78 lines (52 loc) · 1.25 KB

Aggregate Class

Aggregate class to represent the result of an aggregate query

Since

4/5/2024

Group Moxygen

Author Zackary Frazier

Constructors

Aggregate(ar)

Standard constructor, creates an Aggregate object from an AggregateResult

Signature

public Aggregate(AggregateResult ar)

Parameters

Name Type Description
ar AggregateResult the AggregateResult to create the Aggregate from

Aggregate(data)

Constructor for testing purposes, creates an Aggregate object from a Map

Signature

public Aggregate(Map<String,Object> data)

Parameters

Name Type Description
data Map<String,Object> the data to create the Aggregate from

Methods

get(field)

get the value of a field

Signature

public Object get(String field)

Parameters

Name Type Description
field String the field to get

Return Type

Object

the value of the field


toString()

get the value of the aggregate as a String

Signature

public override String toString()

Return Type

String

the value of the field as a string