Class LookupInBuilder<TDocument>
An implementation of ILookup
Implements
Inherited Members
Namespace: Couchbase.Core.IO.Operations.SubDocument
Assembly: Couchbase.NetClient.dll
Syntax
[Obsolete("This class is not required and will be removed in a future release.")]
public class LookupInBuilder<TDocument> : ILookupInBuilder<TDocument>, ISubDocBuilder<TDocument>, ITypeSerializerProvider, IEnumerable<OperationSpec>, IEnumerable, IEquatable<LookupInBuilder<TDocument>>
Type Parameters
Name | Description |
---|---|
TDocument | The type of the document. |
Properties
| Edit this page View SourceCount
Returns a count of the currently chained operations.
Declaration
public int Count { get; }
Property Value
| Edit this page View SourceKey
Gets or sets the unique identifier for the document.
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
string | The key. |
Serializer
Gets the IType
Declaration
public ITypeSerializer Serializer { get; }
Property Value
Type | Description |
---|---|
IType |
Timeout
The maximum time allowed for an operation to live before timing out.
Declaration
public TimeSpan? Timeout { get; }
Property Value
Type | Description |
---|---|
Time |
Methods
| Edit this page View SourceEquals(LookupInBuilder<TDocument>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(LookupInBuilder<TDocument> other)
Parameters
Type | Name | Description |
---|---|---|
Lookup |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Execute()
Executes the chained operations.
Declaration
public IDocumentFragment<TDocument> Execute()
Returns
Type | Description |
---|---|
IDocument |
A Couchbase. |
ExecuteAsync()
Executes the chained operations.
Declaration
public Task<IDocumentFragment<TDocument>> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<IDocument |
A Couchbase. |
Exists(string)
Checks for the existence of a given N1QL path.
Declaration
public ILookupInBuilder<TDocument> Exists(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Returns
Type | Description |
---|---|
ILookup |
A Couchbase. |
Exists(string, SubdocPathFlags, SubdocDocFlags)
Checks for the existence of a given N1QL path.
Declaration
public ILookupInBuilder<TDocument> Exists(string path, SubdocPathFlags pathFlags, SubdocDocFlags docFlags = SubdocDocFlags.None)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Subdoc |
pathFlags | The Subdoc pathFlags. |
Subdoc |
docFlags | The document flags. |
Returns
Type | Description |
---|---|
ILookup |
A Couchbase. |
Get(string)
Gets the value at a specified N1QL path.
Declaration
public ILookupInBuilder<TDocument> Get(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Returns
Type | Description |
---|---|
ILookup |
A Couchbase. |
Get(string, SubdocPathFlags, SubdocDocFlags)
Gets the value at a specified path.
Declaration
public ILookupInBuilder<TDocument> Get(string path, SubdocPathFlags pathFlags, SubdocDocFlags docFlags = SubdocDocFlags.None)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Subdoc |
pathFlags | The Subdoc pathFlags. |
Subdoc |
docFlags | The document flags. |
Returns
Type | Description |
---|---|
ILookup |
A Couchbase. |
GetCount(string)
Gets the number of items in a collection or dictionary at a specified N1QL path.
Declaration
public ILookupInBuilder<TDocument> GetCount(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Returns
Type | Description |
---|---|
ILookup |
A ILookup |
Remarks
Requires Couchbase Server 5.0 or higher
GetCount(string, SubdocPathFlags, SubdocDocFlags)
Gets the number of items in a collection or dictionary at a specified N1QL path.
Declaration
public ILookupInBuilder<TDocument> GetCount(string path, SubdocPathFlags pathFlags, SubdocDocFlags docFlags = SubdocDocFlags.None)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path. |
Subdoc |
pathFlags | The subdocument lookup pathFlags. |
Subdoc |
docFlags | The document flags. |
Returns
Type | Description |
---|---|
ILookup |
A ILookup |
Remarks
Requires Couchbase Server 5.0 or higher
WithTimeout(TimeSpan)
The maximum time allowed for an operation to live before timing out.
Declaration
public ILookupInBuilder<TDocument> WithTimeout(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
Time |
timeout | The timeout. |
Returns
Type | Description |
---|---|
ILookup |
An ILookup |