Class Bucket


  • public class Bucket
    extends Object
    • Field Detail

      • time

        public final org.joda.time.DateTime time
        Start time of this bucket's time window. End time can be determined by our GranularitySpec.
      • partitionNum

        public final int partitionNum
        Partition number of this bucket within our time window (other Buckets may occupy the same window).
    • Constructor Detail

      • Bucket

        public Bucket​(int shardNum,
                      org.joda.time.DateTime time,
                      int partitionNum)
    • Method Detail

      • toGroupKey

        public byte[] toGroupKey​(byte[]... parts)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromGroupKey

        public static org.apache.druid.java.util.common.Pair<Bucket,​byte[]> fromGroupKey​(byte[] keyBytes)
      • getShardNum

        protected int getShardNum()