public class NumberedShardSpec extends Object implements org.apache.druid.timeline.partition.ShardSpec
partitionNum and partitions, which represent the unique id of a partition and the number of core
partitions, respectively. partitions simply indicates that the atomic update is regarded as completed when
partitions partitions are successfully updated, and partitionNum can go beyond it when some types
of index tasks are trying to append to existing partitions.| Constructor and Description |
|---|
NumberedShardSpec(int partitionNum,
int partitions) |
| Modifier and Type | Method and Description |
|---|---|
<T> org.apache.druid.timeline.partition.PartitionChunk<T> |
createChunk(T obj) |
boolean |
equals(Object o) |
List<String> |
getDomainDimensions() |
org.apache.druid.timeline.partition.ShardSpecLookup |
getLookup(List<org.apache.druid.timeline.partition.ShardSpec> shardSpecs) |
int |
getPartitionNum() |
int |
getPartitions() |
int |
hashCode() |
boolean |
isInChunk(long timestamp,
org.apache.druid.data.input.InputRow inputRow) |
boolean |
possibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain) |
String |
toString() |
public int getPartitionNum()
getPartitionNum in interface org.apache.druid.timeline.partition.ShardSpecpublic org.apache.druid.timeline.partition.ShardSpecLookup getLookup(List<org.apache.druid.timeline.partition.ShardSpec> shardSpecs)
getLookup in interface org.apache.druid.timeline.partition.ShardSpecpublic List<String> getDomainDimensions()
getDomainDimensions in interface org.apache.druid.timeline.partition.ShardSpecpublic boolean possibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain)
possibleInDomain in interface org.apache.druid.timeline.partition.ShardSpecpublic int getPartitions()
public <T> org.apache.druid.timeline.partition.PartitionChunk<T> createChunk(T obj)
createChunk in interface org.apache.druid.timeline.partition.ShardSpecpublic boolean isInChunk(long timestamp,
org.apache.druid.data.input.InputRow inputRow)
isInChunk in interface org.apache.druid.timeline.partition.ShardSpecCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.