public class CollectionsManifest extends Object
Immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionsManifest.CollectionInfo |
static class |
CollectionsManifest.ScopeInfo |
| Modifier and Type | Field and Description |
|---|---|
static CollectionsManifest |
DEFAULT
A manifest with just the default scope and default collection.
|
| Modifier and Type | Method and Description |
|---|---|
static CollectionsManifest |
fromJson(byte[] jsonBytes) |
CollectionsManifest.CollectionInfo |
getCollection(long id) |
CollectionsManifest.CollectionInfo |
getCollection(String name) |
long |
getId() |
CollectionsManifest.ScopeInfo |
getScope(String name) |
String |
toString() |
CollectionsManifest |
withCollection(long newManifestId,
long scopeId,
long collectionId,
String collectionName,
Long maxTtl) |
CollectionsManifest |
withManifestId(long newManifestId) |
CollectionsManifest |
withoutCollection(long newManifestId,
long id) |
CollectionsManifest |
withoutScope(long newManifestId,
long doomedScopeId) |
CollectionsManifest |
withScope(long newManifestId,
long newScopeId,
String newScopeName) |
public static final CollectionsManifest DEFAULT
public CollectionsManifest withManifestId(long newManifestId)
public CollectionsManifest withScope(long newManifestId, long newScopeId, String newScopeName)
public CollectionsManifest withoutScope(long newManifestId, long doomedScopeId)
public CollectionsManifest withCollection(long newManifestId, long scopeId, long collectionId, String collectionName, Long maxTtl)
public CollectionsManifest withoutCollection(long newManifestId, long id)
public CollectionsManifest.CollectionInfo getCollection(long id)
public CollectionsManifest.CollectionInfo getCollection(String name)
name - A fully-qualified collection name like "myScope.myCollection"public CollectionsManifest.ScopeInfo getScope(String name)
public long getId()
public static CollectionsManifest fromJson(byte[] jsonBytes) throws IOException
IOExceptionCopyright © 2021 Couchbase, Inc.. All rights reserved.