@JsonCreator
private static @Nonnull Metrics create(
@JsonProperty(BfConsts.PROP_AGGREGATIONS) Map<String, Map<Aggregation, Object>> aggregations,
@JsonProperty(BfConsts.PROP_EMPTY_COLUMNS) Set<String> emptyColumns,
@JsonProperty(BfConsts.PROP_MAJOR_ISSUE_CONFIGS)
Map<String, MajorIssueConfig> majorIssueConfigs,
@JsonProperty(BfConsts.PROP_NUM_EXCLUDED_ROWS) int numExcludedRows,
@JsonProperty(BfConsts.PROP_NUM_ROWS) int numRows) {
return new Metrics(
firstNonNull(aggregations, ImmutableMap.of()),
firstNonNull(emptyColumns, ImmutableSet.of()),
firstNonNull(majorIssueConfigs, ImmutableMap.of()),
numExcludedRows,
numRows);
}