public class NumberedShardSpec extends Object implements io.druid.timeline.partition.ShardSpec
Constructor and Description |
---|
NumberedShardSpec(int partitionNum,
int partitions) |
Modifier and Type | Method and Description |
---|---|
<T> io.druid.timeline.partition.PartitionChunk<T> |
createChunk(T obj) |
io.druid.timeline.partition.ShardSpecLookup |
getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs) |
int |
getPartitionNum() |
int |
getPartitions() |
boolean |
isInChunk(long timestamp,
io.druid.data.input.InputRow inputRow) |
String |
toString() |
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 int getPartitions()
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.