Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class LookupInSpecBuilder

A builder for chaining together lookup specs into a JSON document.

Inheritance
object
LookupInSpecBuilder
LookupInSpecBuilder<TDocument>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
public class LookupInSpecBuilder

Constructors

View Source

LookupInSpecBuilder()

Declaration
public LookupInSpecBuilder()

Methods

View Source

Count(string, bool)

Provides a count of a dictionary or list attribute given a JSON path.

Declaration
public LookupInSpecBuilder Count(string path, bool isXattr = false)
Parameters
Type Name Description
string path

The path to the JSON attribute.

bool isXattr

true if the path is an xAttr; otherwise false.

Returns
Type Description
LookupInSpecBuilder

A LookupInSpecBuilder for chaining specs.

View Source

Exists(string, bool)

Checks for the existence of a value given a path.

Declaration
public LookupInSpecBuilder Exists(string path, bool isXattr = false)
Parameters
Type Name Description
string path

The path to the JSON attribute.

bool isXattr

true if the path is an xAttr; otherwise false.

Returns
Type Description
LookupInSpecBuilder

A LookupInSpecBuilder for chaining specs.

View Source

Get(string, bool)

Fetches the value of an attribute for a given path.

Declaration
public LookupInSpecBuilder Get(string path, bool isXattr = false)
Parameters
Type Name Description
string path

The path to the JSON attribute.

bool isXattr

true if the path is an xAttr; otherwise false.

Returns
Type Description
LookupInSpecBuilder

A LookupInSpecBuilder for chaining specs.

View Source

GetFull()

Fetches the entire JSON document for a key.

Declaration
public LookupInSpecBuilder GetFull()
Returns
Type Description
LookupInSpecBuilder

A LookupInSpecBuilder for chaining specs.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.