QdrantVectorStoreRecordCollection<TRecord>.GetAsync Method

Definition

Overloads

GetAsync(Guid, GetRecordOptions, CancellationToken)

Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.

public virtual System.Threading.Tasks.Task<TRecord?> GetAsync(Guid key, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Guid * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
override this.GetAsync : Guid * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
Public Overridable Function GetAsync (key As Guid, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)

Parameters

key
Guid
cancellationToken
CancellationToken

Returns

Task<TRecord>

Implements

Applies to

GetAsync(UInt64, GetRecordOptions, CancellationToken)

Gets a record from the vector store. Does not guarantee that the collection exists. Returns null if the record is not found.

public virtual System.Threading.Tasks.Task<TRecord?> GetAsync(ulong key, Microsoft.Extensions.VectorData.GetRecordOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : uint64 * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
override this.GetAsync : uint64 * Microsoft.Extensions.VectorData.GetRecordOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Record>
Public Overridable Function GetAsync (key As ULong, Optional options As GetRecordOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TRecord)

Parameters

key
UInt64
cancellationToken
CancellationToken

Returns

Task<TRecord>

Implements

Applies to