Class NoneShardSpec

  • All Implemented Interfaces:
    ShardSpec

    @Deprecated
    public class NoneShardSpec
    extends Object
    implements ShardSpec
    Deprecated.
    Since Druid 0.15.0. Segments generated by Druid 0.15.0 onwards do not use this shard spec.
    ShardSpec with no partitioning in a time chunk, i.e. a single segment per time chunk. This shard spec has been deprecated and is not generated by the Druid code anymore. The class has been retained only for backward compatibility reasons.

    For more information, refer to PR #6883.

    • Method Detail

      • getPartitionNum

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

        public List<String> getDomainDimensions()
        Deprecated.
        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)
        Deprecated.
        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()
        Deprecated.
        Description copied from interface: ShardSpec
        Get the type name of this ShardSpec.
        Specified by:
        getType in interface ShardSpec
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object