Class 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 existing TombstoneShardSpec to exist independently in the timeline even if the TombstoneShardSpec is dropped.
    • Constructor Detail

      • TombstoneShardSpec

        public TombstoneShardSpec()
    • Method Detail

      • getPartitionNum

        public int getPartitionNum()
        Description copied from interface: ShardSpec
        Returns the partition ID of this segment.
        Specified by:
        getPartitionNum in interface ShardSpec
      • getDomainDimensions

        public List<String> getDomainDimensions()
        Description copied from interface: ShardSpec
        Get dimensions who have possible range for the rows this shard contains.
        Specified by:
        getDomainDimensions in interface ShardSpec
        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: ShardSpec
        if given domain ranges are not possible in this shard, return false; otherwise return true;
        Specified by:
        possibleInDomain in interface ShardSpec
        Returns:
        possibility of in domain
      • getType

        public String getType()
        Description copied from interface: ShardSpec
        Get the type name of this ShardSpec.
        Specified by:
        getType in interface ShardSpec
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object