diff --git a/server/src/main/java/io/druid/timeline/partition/LinearShardSpec.java b/server/src/main/java/io/druid/timeline/partition/LinearShardSpec.java index 5b716b20a73..ea7d3256229 100644 --- a/server/src/main/java/io/druid/timeline/partition/LinearShardSpec.java +++ b/server/src/main/java/io/druid/timeline/partition/LinearShardSpec.java @@ -24,8 +24,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Preconditions; import io.druid.data.input.InputRow; -import java.util.Map; - public class LinearShardSpec implements ShardSpec { private int partitionNum; @@ -53,4 +51,12 @@ public class LinearShardSpec implements ShardSpec public boolean isInChunk(InputRow inputRow) { return true; } + + @Override + public String toString() + { + return "LinearShardSpec{" + + "partitionNum=" + partitionNum + + '}'; + } } diff --git a/server/src/main/java/io/druid/timeline/partition/NumberedShardSpec.java b/server/src/main/java/io/druid/timeline/partition/NumberedShardSpec.java index 7c09787b5cc..73a3437a80a 100644 --- a/server/src/main/java/io/druid/timeline/partition/NumberedShardSpec.java +++ b/server/src/main/java/io/druid/timeline/partition/NumberedShardSpec.java @@ -25,8 +25,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Preconditions; import io.druid.data.input.InputRow; -import java.util.Map; - public class NumberedShardSpec implements ShardSpec { @JsonIgnore @@ -71,4 +69,13 @@ public class NumberedShardSpec implements ShardSpec { return true; } + + @Override + public String toString() + { + return "NumberedShardSpec{" + + "partitionNum=" + partitionNum + + ", partitions=" + partitions + + '}'; + } }