public class BucketIdFactory extends Object
Constructor and Description |
---|
BucketIdFactory()
Create a factory, using the default configuration.
|
BucketIdFactory(int locationBits,
int gidBits,
int countBits)
Create a factory, using the provided configuration.
|
BucketIdFactory(String configId)
Create a factory, with parameters gotten from configuration.
|
Modifier and Type | Method and Description |
---|---|
BucketId |
getBucketId(DocumentId doc)
Get the bucket id for a given document.
|
int |
getCountBitCount() |
int |
getGidBitCount() |
int |
getLocationBitCount() |
public BucketIdFactory()
public BucketIdFactory(int locationBits, int gidBits, int countBits)
gidBits
- How many bits that are used to specify gidbits.public BucketIdFactory(String configId)
configId
- The config id from where to get config.public int getLocationBitCount()
public int getGidBitCount()
public int getCountBitCount()
public BucketId getBucketId(DocumentId doc)
doc
- The doc.Copyright © 2018. All rights reserved.