public class LinearShardSpec extends Object implements org.apache.druid.timeline.partition.ShardSpec
partitionNum represents an unique id of a partition.| Constructor and Description |
|---|
LinearShardSpec(Integer partitionNum) |
| Modifier and Type | Method and Description |
|---|---|
<T> org.apache.druid.timeline.partition.PartitionChunk<T> |
createChunk(T obj) |
List<String> |
getDomainDimensions() |
org.apache.druid.timeline.partition.ShardSpecLookup |
getLookup(List<org.apache.druid.timeline.partition.ShardSpec> shardSpecs) |
int |
getPartitionNum() |
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 LinearShardSpec(Integer partitionNum)
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 <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.