LinearShardSpec, NumberedShardSpec toString methods

This commit is contained in:
Gian Merlino 2014-01-08 15:21:53 -08:00
parent 838e555a81
commit 1476d7f51e
2 changed files with 17 additions and 4 deletions

View File

@ -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 +
'}';
}
}

View File

@ -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 +
'}';
}
}