Class OperationSpec
Represents a single operation within a multi-operation against a document using the SubDocument API.
Implements
Namespace: Couchbase.Core.IO.Operations.SubDocument
Assembly: Couchbase.NetClient.dll
Syntax
public abstract class OperationSpec : IEqualityComparer
Properties
| Edit this page View SourceOpCode
Gets or sets the OpCode for the SubDocument operation.
Declaration
public OpCode OpCode { get; }
Property Value
Type | Description |
---|---|
OpCode | The op code. |
Path
Gets or sets the N1QL path within the document.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
string | The path. |
PathFlags
Gets or sets the path flags for the operation.
Declaration
public SubdocPathFlags PathFlags { get; }
Property Value
Type | Description |
---|---|
SubdocPathFlags | The flags. |
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
| Edit this page View SourceEquals(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 |
|
Overrides
| Edit this page View SourceEquals(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 |
|
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
| Edit this page View SourceGetHashCode(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. |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |