public class CollectionMap extends Object
CollectionMap
maps a locator to the encoded collection ID representation.Constructor and Description |
---|
CollectionMap() |
Modifier and Type | Method and Description |
---|---|
byte[] |
get(CollectionIdentifier key)
Retrieves the collection id for the given identifier.
|
boolean |
hasBucketMap(String bucket)
Checks if the given bucket is at all present in the map.
|
void |
put(CollectionIdentifier key,
byte[] value)
Stores a new collection ID with the given identifier.
|
public byte[] get(CollectionIdentifier key)
key
- the key to checkpublic void put(CollectionIdentifier key, byte[] value)
key
- the key to store.value
- the value associated.public boolean hasBucketMap(String bucket)
bucket
- the bucket name to checkCopyright © 2020 Couchbase, Inc.. All rights reserved.