You are here: C++ API > Classes > dtsDataSource Structure > dtsDataSource::rewind Data Member
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsDataSource::rewind Data Member
Syntax
C++
int (* rewind)(void *pData);
Parameters
Description
pData
The value of dtsDataSource.pData

0 if the data source was succesfully initialized, or -1 if initialization failed.

Pointer to a function that will initialize the dtsDataSource so the next getNextDoc call will return the first document. The rewind function should return 0 if the data source was succesfully initialized, or -1 if initialization failed. If rewind returns -1, nothing will be indexed from the data source.

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.