Package org.apache.druid.indexer
Class Bucket
- java.lang.Object
-
- org.apache.druid.indexer.Bucket
-
public class Bucket extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intpartitionNumPartition number of this bucket within our time window (other Buckets may occupy the same window).static intPREAMBLE_BYTESorg.joda.time.DateTimetimeStart time of this bucket's time window.
-
Constructor Summary
Constructors Constructor Description Bucket(int shardNum, org.joda.time.DateTime time, int partitionNum)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static org.apache.druid.java.util.common.Pair<Bucket,byte[]>fromGroupKey(byte[] keyBytes)protected intgetShardNum()inthashCode()byte[]toGroupKey(byte[]... parts)StringtoString()
-
-
-
Field Detail
-
PREAMBLE_BYTES
public static final int PREAMBLE_BYTES
- See Also:
- Constant Field Values
-
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).
-
-
Method Detail
-
toGroupKey
public byte[] toGroupKey(byte[]... parts)
-
fromGroupKey
public static org.apache.druid.java.util.common.Pair<Bucket,byte[]> fromGroupKey(byte[] keyBytes)
-
getShardNum
protected int getShardNum()
-
-