Merge pull request #1975 from gianm/query-to-strings

Better toString for groupBy, segmentMetadata queries.
This commit is contained in:
Xavier Léauté 2015-11-16 13:08:50 -08:00
commit 0fb7e4e040
2 changed files with 17 additions and 2 deletions

View File

@ -564,13 +564,15 @@ public class GroupByQuery extends BaseQuery<Row>
public String toString()
{
return "GroupByQuery{" +
"limitSpec=" + limitSpec +
"dataSource='" + getDataSource() + '\'' +
", querySegmentSpec=" + getQuerySegmentSpec() +
", limitSpec=" + limitSpec +
", dimFilter=" + dimFilter +
", granularity=" + granularity +
", dimensions=" + dimensions +
", aggregatorSpecs=" + aggregatorSpecs +
", postAggregatorSpecs=" + postAggregatorSpecs +
", limitFn=" + limitFn +
", havingSpec=" + havingSpec +
'}';
}

View File

@ -223,6 +223,19 @@ public class SegmentMetadataQuery extends BaseQuery<SegmentAnalysis>
);
}
@Override
public String toString()
{
return "SegmentMetadataQuery{" +
"dataSource='" + getDataSource() + '\'' +
", querySegmentSpec=" + getQuerySegmentSpec() +
", toInclude=" + toInclude +
", merge=" + merge +
", usingDefaultInterval=" + usingDefaultInterval +
", analysisTypes=" + analysisTypes +
'}';
}
@Override
public boolean equals(Object o)
{