Edit statistics routines in statistics.c

If you selected statistics support routines when creating an opaque data type, BladeSmith generates code for the following statistics support routines for your opaque data type in the statistics.c source code file:
  • Statistics collection function
  • Statistics print function
  • Statistics minimum, maximum, and distribution functions
To implement user-defined statistics, you must also create selectivity routines to calculate the selectivity of routines that compare your opaque data type. Selectivity routines call the statistics support functions.
Important: To avoid merging conflicts when you regenerate your code, add code only in areas marked by TO DO: comments or after the generated code. If you do modify code outside the designated areas, after you regenerate you might have two copies of the routine: the one you modified and the one BladeSmith generated. Although your changes remain, you must resolve the conflicts in the two pieces of code.