void DdGetFetchInfo( WtHandle lControlHandle, /* [IN]ctl->ddlHandle */ WtChar8 *pszTableAliasName, /* [IN] table or alias name */ WtChar8 *Buffer, /* return is in form of TBAPI_GETFETCHINFO_HEADER{} */ WtInt32 lBufferSize, WtInt32 *piStatus) From ddl_defs.h: typedef struct TBAPI_GETFETCHINFO_HEADER{ WtInt32 iStructureLength; /* total length of this structure in bytes */ WtInt32 iItemCount; /* number of TBAPI_GETFETCHINFO_ITEM{} members */ WtInt32 iOffsetToItem; /* offset to first TBAPI_GETFETCHINFO_ITEM{} */ }TBAPI_GETFETCHINFO_HEADER; typedef struct TBAPI_GETFETCHINFO_ITEM{ WtInt32 lRecordNumber; WtInt32 lDataOffset; WtInt32 iRecordInstanceCount; }TBAPI_GETFETCHINFO_ITEM;
DdGetFetchInfo() is a special API function than can be called only from the
fetch callback.
Results are returned in Buffer recast as TBAPI_GETFETCHINFO_HEADER*; refer to the following comments for a more detailed description of the format of Buffer. Calls to DdGetFetchInfo() are instituted exclusively from the user's fetch callback function; and the call to DdGetFetchInfo() for a specific table can only be made from the fetch callback for that specific table. The fetch callback for a specific table is triggered by TBAPI only when a table contains virtual data that is being requested by the underlying TBAPI function. The description of collection processing modes gives insight that may be helpful in defining and testing a batching algorithm. Description of Parameter lControlHandle:
Description of Parameter pszTableAliasName:
Description of Parameter Buffer:
Description of Parameter lBufferSize:
Description of Parameter piStatus:
|
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.