Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class ScanType

Inheritance
object
ScanType
RangeScan
SamplingScan
Implements
IScanType
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.KeyValue.RangeScan
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Volatile)]
public abstract class ScanType : IScanType

Constructors

View Source

ScanType()

Declaration
protected ScanType()

Methods

View Source

PrefixScan(string)

Creates a new KV range scan, scanning all document IDs starting with the given Prefix.

Declaration
public PrefixScan PrefixScan(string prefix)
Parameters
Type Name Description
string prefix

The Prefix ScanTerm to start scanning from.

Returns
Type Description
PrefixScan

A newly created PrefixScan(string) to be passed into the Collection API.

View Source

RangeScan(ScanTerm, ScanTerm)

Creates a new KV range scan, scanning between two ScanTerm ScanTerms.

Declaration
public RangeScan RangeScan(ScanTerm from, ScanTerm to)
Parameters
Type Name Description
ScanTerm from

From the ScanTerm to start scanning from.

ScanTerm to

To the ScanTerm to scan to.

Returns
Type Description
RangeScan

A newly created RangeScan(ScanTerm, ScanTerm) to be passed into the Collection API.

View Source

SamplingScan(ulong)

Creates a new KV sampling scan, which randomly samples documents up until the configured limit with a default seed.

Declaration
public SamplingScan SamplingScan(ulong limit)
Parameters
Type Name Description
ulong limit

limit the number of documents to limit sampling to.

Returns
Type Description
SamplingScan

A newly created SamplingScan(ulong) to be passed into the Collection API.

View Source

SamplingScan(ulong, ulong)

Creates a new KV sampling scan, which randomly samples documents up until the configured limit with a custom seed.

Declaration
public SamplingScan SamplingScan(ulong limit, ulong seed)
Parameters
Type Name Description
ulong limit
ulong seed

The custom seed used for sampling.

Returns
Type Description
SamplingScan

Implements

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