Class TombstoneShardSpec
- java.lang.Object
-
- org.apache.druid.timeline.partition.TombstoneShardSpec
-
- All Implemented Interfaces:
ShardSpec
public class TombstoneShardSpec extends Object implements ShardSpec
A shard spec to represent tombstones. Its partition number is always zero and contains zero core partitions as it contains no data. This allows other shard types appending to an existingTombstoneShardSpecto exist independently in the timeline even if theTombstoneShardSpecis dropped.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.druid.timeline.partition.ShardSpec
ShardSpec.Type
-
-
Field Summary
Fields Modifier and Type Field Description static TombstoneShardSpecINSTANCE
-
Constructor Summary
Constructors Constructor Description TombstoneShardSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> PartitionChunk<T>createChunk(T obj)booleanequals(Object o)List<String>getDomainDimensions()Get dimensions who have possible range for the rows this shard contains.ShardSpecLookupgetLookup(List<? extends ShardSpec> shardSpecs)intgetNumCorePartitions()intgetPartitionNum()Returns the partition ID of this segment.StringgetType()Get the type name of this ShardSpec.inthashCode()booleanpossibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain)if given domain ranges are not possible in this shard, return false; otherwise return true;StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.timeline.partition.ShardSpec
getAtomicUpdateGroupSize, getEndRootPartitionId, getMinorVersion, getStartRootPartitionId, sharePartitionSpace
-
-
-
-
Field Detail
-
INSTANCE
public static TombstoneShardSpec INSTANCE
-
-
Method Detail
-
getPartitionNum
public int getPartitionNum()
Description copied from interface:ShardSpecReturns the partition ID of this segment.- Specified by:
getPartitionNumin interfaceShardSpec
-
getLookup
public ShardSpecLookup getLookup(List<? extends ShardSpec> shardSpecs)
-
getDomainDimensions
public List<String> getDomainDimensions()
Description copied from interface:ShardSpecGet dimensions who have possible range for the rows this shard contains.- Specified by:
getDomainDimensionsin interfaceShardSpec- Returns:
- list of dimensions who has its possible range. Dimensions with unknown possible range are not listed
-
possibleInDomain
public boolean possibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain)
Description copied from interface:ShardSpecif given domain ranges are not possible in this shard, return false; otherwise return true;- Specified by:
possibleInDomainin interfaceShardSpec- Returns:
- possibility of in domain
-
getNumCorePartitions
public int getNumCorePartitions()
- Specified by:
getNumCorePartitionsin interfaceShardSpec
-
createChunk
public <T> PartitionChunk<T> createChunk(T obj)
- Specified by:
createChunkin interfaceShardSpec
-
getType
public String getType()
Description copied from interface:ShardSpecGet the type name of this ShardSpec.
-
-