Bulk CopyCopy Async Method
Copies the data provided by the dataReader to the index.
Definition
Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The number of documents that were copied.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public Task<int> CopyAsync(
IDataReader dataReader,
CancellationToken cancellationToken = default
)VB
Public Function CopyAsync (
dataReader As IDataReader,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Integer)Parameters
- dataReader IDataReader
- cancellationToken CancellationToken (Optional)
Return Value
TaskInt32The number of documents that were copied.