public class Bucket extends Object
Modifier and Type | Field and Description |
---|---|
int |
partitionNum
Partition number of this bucket within our time window (other Buckets may occupy the same window).
|
static int |
PREAMBLE_BYTES |
org.joda.time.DateTime |
time
Start time of this bucket's time window.
|
Constructor and Description |
---|
Bucket(int shardNum,
org.joda.time.DateTime time,
int partitionNum) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static com.metamx.common.Pair<Bucket,byte[]> |
fromGroupKey(byte[] keyBytes) |
int |
hashCode() |
byte[] |
toGroupKey(byte[]... parts) |
String |
toString() |
public static final int PREAMBLE_BYTES
public final org.joda.time.DateTime time
public final int partitionNum
public Bucket(int shardNum, org.joda.time.DateTime time, int partitionNum)
public byte[] toGroupKey(byte[]... parts)
public static final com.metamx.common.Pair<Bucket,byte[]> fromGroupKey(byte[] keyBytes)
Copyright © 2011–2015. All rights reserved.