mirror of https://github.com/apache/druid.git
LinearShardSpec, NumberedShardSpec toString methods
This commit is contained in:
parent
838e555a81
commit
1476d7f51e
|
@ -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 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue