void ddlInvertIndex( CONTROL *ctl, WtChar8 *OptnString, WtChar8 *ArgString, InvertFlEnum invertFlags, void *valueArray, WtInt32 valueArrayCount); typedef enum { InvertFlAll = 0x0000, // include all nodes in the tree InvertFlIncludeNull = 0x0001, // include only NULL // can be combined with InvertFlIncludeList InvertFlIncludeList = 0x0004, // include only the nodes in the list // can be combined with InvertFlIncludeNull InvertFlExcludeNull = 0x0002, // include all nodes in the tree except NULL // can be combined with InvertFlExcludeList InvertFlExcludeList = 0x0008 // include all nodes in the tree except those in the list // can be combined with InvertFlExcludeNull } InvertFlEnum; Meaningful combinations of InvertFlEnum values: InvertFlAll -- include all nodes in the tree InvertFlIncludeList -- include only the nodes in the list InvertFlIncludeNull -- include only NULL InvertFlIncludeList | InvertFlIncludeNull -- include only the nodes in the list (including NULL) InvertFlExcludeList -- include all nodes except those in the list InvertFlExcludeNull -- include all nodes except NULL InvertFlExcludeList | IncludeFlExcludeNull -- include all nodes except those in the list and NULL
In its unqualified form: <Source-Key> [<Dest-CX>] <Dest-Table> <Dest-Column> the ddlInvertIndex() API function performs the inverse function to the ddlStructure() API function. That is, for a specified index, it reads every node of the index and stores the node value into the respective rows of a target table, in accord with the row information that is included in the node. When it is complete, the specified column of the target table is an exact image of the original source column from which the index was built. <Source-Key> must be an unambiguous reference. If required, <Source-Key> can be a fully qualified name, in both the tokenmap and non-tokenmap cases. The rows of the <Dest-Table> must be pre-initialized by the caller. There are four methods of modifying which nodes are processed and which rows are written to the destination table:
|
Control.Ans1 | Number of nodes read |
Control.Ans2 | Number of records updated in target table |
InvertIndex Examples |
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.