The AggrERec class calls can retrieve attributes of aggregated records.
The following code snippets illustrate these calls.
Navigation nav = qr.getNavigation();
// Get total number of aggregated records that matched the query
long nAggrRecs = nav.getTotalNumAggrERecs();
// Get the aggregated records from the Navigation object
AggrERecList aggrecs = nav.getAggrERecs();
// Loop over the aggregated record list
for (int i=0; i<aggrecs.size(); i++) {
// Get individual aggregate record
AggrERec aggrec = (AggrERec)aggrecs.get(i);
// Get number of records in this aggregated record
long recCount = aggrec.getTotalNumERecs();
// Get the aggregated record's attributes
String aggrSpec = aggrec.getSpec();
PropertyMap propMap = aggrec.getProperties();
ERecList recs = aggrec.getERecs();
ERec repRec = aggrec.getRepresentative();
}
Navigation nav = qr.Navigation;
// Get total number of aggregated records that matched the query
long nAggrRecs = nav.TotalNumAggrERecs;
// Get the aggregated records from the Navigation object
AggrERecList aggrecs = nav.AggrERecs;
// Loop over the aggregated record list
for (int i=0; i<aggrecs.Count; i++) {
// Get individual aggregate record
AggrERec aggrec = (AggrERec)aggrecs[i];
// Get number of records in this aggregated record
long recCount = aggrec.TotalNumERecs;
// Get the aggregated record's attributes
String aggrSpec = aggrec.Spec;
PropertyMap propMap = aggrec.Properties;
ERecList recs = aggRec.ERecs;
ERec repRec = aggrec.Representative;
}