C# 클래스 Couchbase.Management.MemcachedBucketManager

An IBucket implementation for doing mangement operations on a MemcachedBucket.
상속: BucketManager
파일 보기 프로젝트 열기: couchbase/couchbase-net-client

공개 메소드들

메소드 설명
BuildN1qlDeferredIndexes ( ) : IList

Builds any indexes that have been created with the "defer" flag and are still in the "pending" state on the current IBucket.

BuildN1qlDeferredIndexesAsync ( ) : Task

Builds any indexes that have been created with the "defered" flag and are still in the "pending" state asynchronously.

CreateN1qlIndex ( string indexName, bool defer = false ) : IResult

Creates a secondary index on the current IBucket reference.

CreateN1qlIndexAsync ( string indexName, bool defer = false ) : Task

Creates a secondary index with optional fields asynchronously.

CreateN1qlPrimaryIndex ( bool defer = false ) : IResult

Creates the primary index for the current bucket if it doesn't already exist.

CreateN1qlPrimaryIndex ( string customName, bool defer = false ) : IResult

Creates a primary index on the current IBucket reference.

CreateN1qlPrimaryIndexAsync ( bool defer = false ) : Task

Creates a primary index on the current IBucket asynchronously.

CreateN1qlPrimaryIndexAsync ( string customName, bool defer = false ) : Task

Creates a named primary index on the current IBucket asynchronously.

DropN1qlIndex ( string name ) : IResult

Drops a secondary index on the current IBucket reference.

DropN1qlIndexAsync ( string name ) : Task

Drops an index by name asynchronously.

DropN1qlPrimaryIndex ( ) : IResult

Drops the primary index on the current IBucket.

DropN1qlPrimaryIndex ( string customName ) : IResult

Drops the named primary index if it exists on the current IBucket.

DropN1qlPrimaryIndexAsync ( ) : Task

Drops the primary index of the current IBucket asynchronously.

DropNamedPrimaryIndexAsync ( string customName ) : Task

Drops the named primary index on the current IBucket asynchronously.

GetDesignDocument ( string designDocName ) : IResult

Retrieves the contents of a design document.

GetDesignDocumentAsync ( string designDocName ) : Task>

Retrieves the contents of a design document.

GetDesignDocuments ( bool includeDevelopment = false ) : IResult

Lists all existing design documents.

GetDesignDocumentsAsync ( bool includeDevelopment = false ) : Task>

Lists all existing design documents.

InsertDesignDocument ( string designDocName, string designDoc ) : IResult

Inserts a design document containing a number of views.

InsertDesignDocumentAsync ( string designDocName, string designDoc ) : Task

Inserts a design document containing a number of views.

ListN1qlIndexes ( ) : IndexResult

Lists the indexes for the current IBucket.

ListN1qlIndexesAsync ( ) : Task

Lists the indexes for a the current IBucket asynchronously.

MemcachedBucketManager ( IBucket bucket, Couchbase.Configuration.Client.ClientConfiguration clientConfig, IDataMapper mapper, string username, string password ) : System
RemoveDesignDocument ( string designDocName ) : IResult

Removes a design document.

RemoveDesignDocumentAsync ( string designDocName ) : Task

Removes a design document.

UpdateDesignDocument ( string designDocName, string designDoc ) : IResult

Updates a design document containing a number of views.

UpdateDesignDocumentAsync ( string designDocName, string designDoc ) : Task

Updates a design document containing a number of views.

WatchN1qlIndexes ( List indexNames, System.TimeSpan watchTimeout ) : IResult>

Watches all given indexes, polling the query service until they are "online" or the has expired.

WatchN1qlIndexesAsync ( List indexNames, System.TimeSpan watchTimeout ) : Task>>

Watches all given indexes, asynchronously polling the query service until they are "online" or the has expired.

보호된 메소드들

메소드 설명
ExecuteIndexRequest ( string statement ) : IResult

Executes the index request syncronously.

ExecuteIndexRequestAsync ( string statement ) : Task

Executes the index request asynchronously.

메소드 상세

BuildN1qlDeferredIndexes() 공개 메소드

Builds any indexes that have been created with the "defer" flag and are still in the "pending" state on the current IBucket.
This method is only supported on Couchbase Bucket (persistent) types.
public BuildN1qlDeferredIndexes ( ) : IList
리턴 IList

BuildN1qlDeferredIndexesAsync() 공개 메소드

Builds any indexes that have been created with the "defered" flag and are still in the "pending" state asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public BuildN1qlDeferredIndexesAsync ( ) : Task
리턴 Task

CreateN1qlIndex() 공개 메소드

Creates a secondary index on the current IBucket reference.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlIndex ( string indexName, bool defer = false ) : IResult
indexName string Name of the index to create.
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 IResult

CreateN1qlIndexAsync() 공개 메소드

Creates a secondary index with optional fields asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlIndexAsync ( string indexName, bool defer = false ) : Task
indexName string Name of the index.
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 Task

CreateN1qlPrimaryIndex() 공개 메소드

Creates the primary index for the current bucket if it doesn't already exist.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlPrimaryIndex ( bool defer = false ) : IResult
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 IResult

CreateN1qlPrimaryIndex() 공개 메소드

Creates a primary index on the current IBucket reference.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlPrimaryIndex ( string customName, bool defer = false ) : IResult
customName string The name of the index.
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 IResult

CreateN1qlPrimaryIndexAsync() 공개 메소드

Creates a primary index on the current IBucket asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlPrimaryIndexAsync ( bool defer = false ) : Task
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 Task

CreateN1qlPrimaryIndexAsync() 공개 메소드

Creates a named primary index on the current IBucket asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public CreateN1qlPrimaryIndexAsync ( string customName, bool defer = false ) : Task
customName string The name of the custom index.
defer bool If set to true, the N1QL query will use the "with defer" syntax and the index will simply be "pending" (prior to 4.5) or "deferred" (at and after 4.5, see MB-14679).
리턴 Task

DropN1qlIndex() 공개 메소드

Drops a secondary index on the current IBucket reference.
This method is only supported on Couchbase Bucket (persistent) types.
public DropN1qlIndex ( string name ) : IResult
name string The name of the secondary index to drop.
리턴 IResult

DropN1qlIndexAsync() 공개 메소드

Drops an index by name asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public DropN1qlIndexAsync ( string name ) : Task
name string The name of the index to drop.
리턴 Task

DropN1qlPrimaryIndex() 공개 메소드

Drops the primary index on the current IBucket.
This method is only supported on Couchbase Bucket (persistent) types.
public DropN1qlPrimaryIndex ( ) : IResult
리턴 IResult

DropN1qlPrimaryIndex() 공개 메소드

Drops the named primary index if it exists on the current IBucket.
This method is only supported on Couchbase Bucket (persistent) types.
public DropN1qlPrimaryIndex ( string customName ) : IResult
customName string Name of primary index.
리턴 IResult

DropN1qlPrimaryIndexAsync() 공개 메소드

Drops the primary index of the current IBucket asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public DropN1qlPrimaryIndexAsync ( ) : Task
리턴 Task

DropNamedPrimaryIndexAsync() 공개 메소드

Drops the named primary index on the current IBucket asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public DropNamedPrimaryIndexAsync ( string customName ) : Task
customName string Name of the primary index to drop.
리턴 Task

ExecuteIndexRequest() 보호된 메소드

Executes the index request syncronously.
This method is only supported on Couchbase Bucket (persistent) types.
protected ExecuteIndexRequest ( string statement ) : IResult
statement string The statement.
리턴 IResult

ExecuteIndexRequestAsync() 보호된 메소드

Executes the index request asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
protected ExecuteIndexRequestAsync ( string statement ) : Task
statement string The statement.
리턴 Task

GetDesignDocument() 공개 메소드

Retrieves the contents of a design document.
This method is only supported on Couchbase Bucket (persistent) types.
public GetDesignDocument ( string designDocName ) : IResult
designDocName string The name of the design document.
리턴 IResult

GetDesignDocumentAsync() 공개 메소드

Retrieves the contents of a design document.
This method is only supported on Couchbase Bucket (persistent) types.
public GetDesignDocumentAsync ( string designDocName ) : Task>
designDocName string The name of the design document.
리턴 Task>

GetDesignDocuments() 공개 메소드

Lists all existing design documents.
This method is only supported on Couchbase Bucket (persistent) types.
public GetDesignDocuments ( bool includeDevelopment = false ) : IResult
includeDevelopment bool Whether or not to show development design documents in the results.
리턴 IResult

GetDesignDocumentsAsync() 공개 메소드

Lists all existing design documents.
This method is only supported on Couchbase Bucket (persistent) types.
public GetDesignDocumentsAsync ( bool includeDevelopment = false ) : Task>
includeDevelopment bool Whether or not to show development design documents in the results.
리턴 Task>

InsertDesignDocument() 공개 메소드

Inserts a design document containing a number of views.
This method is only supported on Couchbase Bucket (persistent) types.
public InsertDesignDocument ( string designDocName, string designDoc ) : IResult
designDocName string The name of the design document.
designDoc string A design document JSON string.
리턴 IResult

InsertDesignDocumentAsync() 공개 메소드

Inserts a design document containing a number of views.
This method is only supported on Couchbase Bucket (persistent) types.
public InsertDesignDocumentAsync ( string designDocName, string designDoc ) : Task
designDocName string The name of the design document.
designDoc string A design document JSON string.
리턴 Task

ListN1qlIndexes() 공개 메소드

Lists the indexes for the current IBucket.
This method is only supported on Couchbase Bucket (persistent) types.
public ListN1qlIndexes ( ) : IndexResult
리턴 IndexResult

ListN1qlIndexesAsync() 공개 메소드

Lists the indexes for a the current IBucket asynchronously.
This method is only supported on Couchbase Bucket (persistent) types.
public ListN1qlIndexesAsync ( ) : Task
리턴 Task

MemcachedBucketManager() 공개 메소드

public MemcachedBucketManager ( IBucket bucket, Couchbase.Configuration.Client.ClientConfiguration clientConfig, IDataMapper mapper, string username, string password ) : System
bucket IBucket
clientConfig Couchbase.Configuration.Client.ClientConfiguration
mapper IDataMapper
username string
password string
리턴 System

RemoveDesignDocument() 공개 메소드

Removes a design document.
This method is only supported on Couchbase Bucket (persistent) types.
public RemoveDesignDocument ( string designDocName ) : IResult
designDocName string The name of the design document.
리턴 IResult

RemoveDesignDocumentAsync() 공개 메소드

Removes a design document.
This method is only supported on Couchbase Bucket (persistent) types.
public RemoveDesignDocumentAsync ( string designDocName ) : Task
designDocName string The name of the design document.
리턴 Task

UpdateDesignDocument() 공개 메소드

Updates a design document containing a number of views.
This method is only supported on Couchbase Bucket (persistent) types.
public UpdateDesignDocument ( string designDocName, string designDoc ) : IResult
designDocName string The name of the design document.
designDoc string A design document JSON string.
리턴 IResult

UpdateDesignDocumentAsync() 공개 메소드

Updates a design document containing a number of views.
This method is only supported on Couchbase Bucket (persistent) types.
public UpdateDesignDocumentAsync ( string designDocName, string designDoc ) : Task
designDocName string The name of the design document.
designDoc string A design document JSON string.
리턴 Task

WatchN1qlIndexes() 공개 메소드

Watches all given indexes, polling the query service until they are "online" or the has expired.
public WatchN1qlIndexes ( List indexNames, System.TimeSpan watchTimeout ) : IResult>
indexNames List The list of indexes to watch for.
watchTimeout System.TimeSpan The timeout for the watch.
리턴 IResult>

WatchN1qlIndexesAsync() 공개 메소드

Watches all given indexes, asynchronously polling the query service until they are "online" or the has expired.
public WatchN1qlIndexesAsync ( List indexNames, System.TimeSpan watchTimeout ) : Task>>
indexNames List The list of indexes to watch for.
watchTimeout System.TimeSpan The timeout for the watch.
리턴 Task>>