Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class OperationSpec

Represents a single operation within a multi-operation against a document using the SubDocument API.

Inheritance
object
OperationSpec
LookupInSpec
MutateInSpec
Implements
IEqualityComparer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Couchbase.Core.IO.Operations.SubDocument
Assembly: Couchbase.NetClient.dll
Syntax
public abstract class OperationSpec : IEqualityComparer

Constructors

View Source

OperationSpec()

Declaration
protected OperationSpec()

Properties

View Source

OpCode

Gets or sets the OpCode for the SubDocument operation.

Declaration
public OpCode OpCode { get; }
Property Value
Type Description
OpCode

The op code.

View Source

Path

Gets or sets the N1QL path within the document.

Declaration
public string Path { get; }
Property Value
Type Description
string

The path.

View Source

PathFlags

Gets or sets the path flags for the operation.

Declaration
public SubdocPathFlags PathFlags { get; }
Property Value
Type Description
SubdocPathFlags

The flags.

View Source

Value

Gets or sets the value that will be written or received. This can be a JSON fragment or a scalar.

Declaration
public object? Value { get; }
Property Value
Type Description
object

The value.

Methods

View Source

Equals(object?)

Determines whether the specified OperationSpec, is equal to this instance. Only compares Path and OpCode!

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The OperationSpec to compare with this instance.

Returns
Type Description
bool

true if the specified OperationSpec is equal to this instance; otherwise, false.

Overrides
object.Equals(object)
View Source

Equals(object?, object?)

Determines whether the specified OperationSpec, is equal to this instance. Only compares Path and OpCode!

Declaration
public bool Equals(object? x, object? y)
Parameters
Type Name Description
object x

The OperationSpec to compare with this instance.

object y

The y.

Returns
Type Description
bool

true if the specified OperationSpec is equal to this instance; otherwise, false.

View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
object.GetHashCode()
View Source

GetHashCode(object)

Returns a hash code for this instance.

Declaration
public int GetHashCode(object obj)
Parameters
Type Name Description
object obj

The object.

Returns
Type Description
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

View Source

ToString()

Returns a string that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
object.ToString()

Implements

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