From 57f213d536d232e28e121657e654d5433399bd1e Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Mon, 16 Nov 2015 12:49:40 -0800 Subject: [PATCH] Better toString for groupBy, segmentMetadata queries. --- .../java/io/druid/query/groupby/GroupByQuery.java | 6 ++++-- .../metadata/metadata/SegmentMetadataQuery.java | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/processing/src/main/java/io/druid/query/groupby/GroupByQuery.java b/processing/src/main/java/io/druid/query/groupby/GroupByQuery.java index 387c737d232..34d17350d63 100644 --- a/processing/src/main/java/io/druid/query/groupby/GroupByQuery.java +++ b/processing/src/main/java/io/druid/query/groupby/GroupByQuery.java @@ -564,13 +564,15 @@ public class GroupByQuery extends BaseQuery 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 + '}'; } diff --git a/processing/src/main/java/io/druid/query/metadata/metadata/SegmentMetadataQuery.java b/processing/src/main/java/io/druid/query/metadata/metadata/SegmentMetadataQuery.java index bd687edd89b..b9a1f39a68e 100644 --- a/processing/src/main/java/io/druid/query/metadata/metadata/SegmentMetadataQuery.java +++ b/processing/src/main/java/io/druid/query/metadata/metadata/SegmentMetadataQuery.java @@ -223,6 +223,19 @@ public class SegmentMetadataQuery extends BaseQuery ); } + @Override + public String toString() + { + return "SegmentMetadataQuery{" + + "dataSource='" + getDataSource() + '\'' + + ", querySegmentSpec=" + getQuerySegmentSpec() + + ", toInclude=" + toInclude + + ", merge=" + merge + + ", usingDefaultInterval=" + usingDefaultInterval + + ", analysisTypes=" + analysisTypes + + '}'; + } + @Override public boolean equals(Object o) {