public class BucketId extends Object implements Comparable<BucketId>
Modifier and Type | Field and Description |
---|---|
static int |
COUNT_BITS |
private long |
id |
private static long[] |
usedMask |
Constructor and Description |
---|
BucketId()
Default-constructed BucketId signifies an invalid bucket ID.
|
BucketId(int usedBits,
long id) |
BucketId(long id)
Creates a bucket id with the given raw bucket id.
|
BucketId(String serialized) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BucketId other) |
boolean |
contains(BucketId id) |
boolean |
contains(DocumentId docId,
BucketIdFactory factory) |
boolean |
equals(Object o) |
long |
getId() |
long |
getRawId() |
int |
getUsedBits() |
int |
hashCode() |
String |
toString() |
long |
withoutCountBits() |
public static final int COUNT_BITS
private long id
private static long[] usedMask
public BucketId()
public BucketId(long id)
public BucketId(int usedBits, long id)
public BucketId(String serialized)
public int compareTo(BucketId other)
compareTo
in interface Comparable<BucketId>
public int getUsedBits()
public long getRawId()
public long getId()
public long withoutCountBits()
public boolean contains(BucketId id)
public boolean contains(DocumentId docId, BucketIdFactory factory)
Copyright © 2017. All rights reserved.