Bug fix on collection mode for aggregation history
This commit is contained in:
parent
09fd3dbcd5
commit
f43753253d
|
@ -313,6 +313,8 @@ public class Converter {
|
||||||
|
|
||||||
JSONArray rs = new JSONArray(repositoryObject.get("aggregationHistory").toString());
|
JSONArray rs = new JSONArray(repositoryObject.get("aggregationHistory").toString());
|
||||||
|
|
||||||
|
LOGGER.debug(rs.length());
|
||||||
|
|
||||||
List<AggregationDetails> aggregationDetailsList = new ArrayList<>();
|
List<AggregationDetails> aggregationDetailsList = new ArrayList<>();
|
||||||
for(int i=0;i<rs.length();i++)
|
for(int i=0;i<rs.length();i++)
|
||||||
aggregationDetailsList.add(jsonToAggregationDetails(rs.getJSONObject(i)));
|
aggregationDetailsList.add(jsonToAggregationDetails(rs.getJSONObject(i)));
|
||||||
|
@ -324,7 +326,8 @@ public class Converter {
|
||||||
AggregationDetails aggregationDetails = new AggregationDetails();
|
AggregationDetails aggregationDetails = new AggregationDetails();
|
||||||
|
|
||||||
aggregationDetails.setAggregationStage(aggregationObject.get("aggregationStage").toString());
|
aggregationDetails.setAggregationStage(aggregationObject.get("aggregationStage").toString());
|
||||||
//aggregationDetails.setCollectionMode(aggregationObject.get("collectionMode").toString());
|
if(aggregationObject.has("collectionMode"))
|
||||||
|
aggregationDetails.setCollectionMode(aggregationObject.get("collectionMode").toString());
|
||||||
aggregationDetails.setDate(convertStringToDate(aggregationObject.get("date").toString()));
|
aggregationDetails.setDate(convertStringToDate(aggregationObject.get("date").toString()));
|
||||||
aggregationDetails.setNumberOfRecords(Integer.parseInt(aggregationObject.get("numberOfRecords").toString()));
|
aggregationDetails.setNumberOfRecords(Integer.parseInt(aggregationObject.get("numberOfRecords").toString()));
|
||||||
return aggregationDetails;
|
return aggregationDetails;
|
||||||
|
|
Loading…
Reference in New Issue