public class AsyncViewIndexManager extends Object
Constructor and Description |
---|
AsyncViewIndexManager(Core core,
String bucket) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
dropDesignDocument(String name,
DesignDocumentNamespace namespace)
Removes a design document from the server.
|
CompletableFuture<Void> |
dropDesignDocument(String name,
DesignDocumentNamespace namespace,
DropDesignDocumentOptions options)
Removes a design document from the server.
|
CompletableFuture<List<DesignDocument>> |
getAllDesignDocuments(DesignDocumentNamespace namespace)
Returns all of the design documents in the specified namespace.
|
CompletableFuture<List<DesignDocument>> |
getAllDesignDocuments(DesignDocumentNamespace namespace,
GetAllDesignDocumentsOptions options)
Returns all of the design documents in the specified namespace.
|
CompletableFuture<DesignDocument> |
getDesignDocument(String name,
DesignDocumentNamespace namespace)
Returns the named design document from the specified namespace.
|
CompletableFuture<DesignDocument> |
getDesignDocument(String name,
DesignDocumentNamespace namespace,
GetDesignDocumentOptions options)
Returns the named design document from the specified namespace.
|
CompletableFuture<Void> |
publishDesignDocument(String name)
Convenience method that gets a the document from the development namespace
and upserts it to the production namespace.
|
CompletableFuture<Void> |
publishDesignDocument(String name,
PublishDesignDocumentOptions options)
Convenience method that gets a the document from the development namespace
and upserts it to the production namespace.
|
CompletableFuture<Void> |
upsertDesignDocument(DesignDocument doc,
DesignDocumentNamespace namespace)
Stores the design document on the server under the specified namespace, replacing any existing document
with the same name.
|
CompletableFuture<Void> |
upsertDesignDocument(DesignDocument doc,
DesignDocumentNamespace namespace,
UpsertDesignDocumentOptions options)
Stores the design document on the server under the specified namespace, replacing any existing document
with the same name.
|
public CompletableFuture<List<DesignDocument>> getAllDesignDocuments(DesignDocumentNamespace namespace)
namespace
- namespace to querypublic CompletableFuture<List<DesignDocument>> getAllDesignDocuments(DesignDocumentNamespace namespace, GetAllDesignDocumentsOptions options)
namespace
- namespace to queryoptions
- additional optional arguments (timeout, retry, etc.)public CompletableFuture<DesignDocument> getDesignDocument(String name, DesignDocumentNamespace namespace)
name
- name of the design document to retrievenamespace
- namespace to look inDesignDocumentNotFoundException
- if the namespace does not contain a document with the given namepublic CompletableFuture<DesignDocument> getDesignDocument(String name, DesignDocumentNamespace namespace, GetDesignDocumentOptions options)
name
- name of the design document to retrievenamespace
- namespace to look inoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- if the namespace does not contain a document with the given namepublic CompletableFuture<Void> upsertDesignDocument(DesignDocument doc, DesignDocumentNamespace namespace)
doc
- document to storenamespace
- namespace to store it inpublic CompletableFuture<Void> upsertDesignDocument(DesignDocument doc, DesignDocumentNamespace namespace, UpsertDesignDocumentOptions options)
doc
- document to storenamespace
- namespace to store it inoptions
- additional optional arguments (timeout, retry, etc.)public CompletableFuture<Void> publishDesignDocument(String name)
name
- name of the development design documentDesignDocumentNotFoundException
- if the development namespace does not contain a document with the given namepublic CompletableFuture<Void> publishDesignDocument(String name, PublishDesignDocumentOptions options)
name
- name of the development design documentoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- if the development namespace does not contain a document with the given namepublic CompletableFuture<Void> dropDesignDocument(String name, DesignDocumentNamespace namespace)
name
- name of the document to removenamespace
- namespace to remove it fromDesignDocumentNotFoundException
- if the namespace does not contain a document with the given namepublic CompletableFuture<Void> dropDesignDocument(String name, DesignDocumentNamespace namespace, DropDesignDocumentOptions options)
name
- name of the document to removenamespace
- namespace to remove it fromoptions
- additional optional arguments (timeout, retry, etc.)DesignDocumentNotFoundException
- if the namespace does not contain a document with the given nameCopyright © 2021 Couchbase, Inc.. All rights reserved.