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 Pair<Bucket,byte[]> | 
fromGroupKey(byte[] keyBytes)  | 
protected int | 
getShardNum()  | 
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)
Copyright © 2011–2018. All rights reserved.