public class SingleDimensionShardSpec extends Object implements io.druid.timeline.partition.ShardSpec
Constructor and Description |
---|
SingleDimensionShardSpec() |
SingleDimensionShardSpec(String dimension,
String start,
String end,
int partitionNum) |
Modifier and Type | Method and Description |
---|---|
<T> io.druid.timeline.partition.PartitionChunk<T> |
createChunk(T obj) |
String |
getDimension() |
String |
getEnd() |
io.druid.timeline.partition.ShardSpecLookup |
getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs) |
int |
getPartitionNum() |
String |
getStart() |
boolean |
isInChunk(long timestamp,
io.druid.data.input.InputRow inputRow) |
void |
setDimension(String dimension) |
void |
setEnd(String end) |
void |
setPartitionNum(int partitionNum) |
void |
setStart(String start) |
String |
toString() |
public String getDimension()
public void setDimension(String dimension)
public String getStart()
public void setStart(String start)
public String getEnd()
public void setEnd(String end)
public int getPartitionNum()
getPartitionNum
in interface io.druid.timeline.partition.ShardSpec
public io.druid.timeline.partition.ShardSpecLookup getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs)
getLookup
in interface io.druid.timeline.partition.ShardSpec
public void setPartitionNum(int partitionNum)
public <T> io.druid.timeline.partition.PartitionChunk<T> createChunk(T obj)
createChunk
in interface io.druid.timeline.partition.ShardSpec
public boolean isInChunk(long timestamp, io.druid.data.input.InputRow inputRow)
isInChunk
in interface io.druid.timeline.partition.ShardSpec
Copyright © 2011–2015. All rights reserved.