Profiler Object:Column-Based Value Pattern Table Iteration: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
{| class="mw-collapsible mw-collapsed" style="width:100%;" | {| class="mw-collapsible mw-collapsed" style="width:100%;" | ||
|- align="left" | |- align="left" | ||
! style="color:black;"|[[Profiler Object:Column-Based Statistics|Column-Based Statistics]] | ! style="color:black; text-align:left;"|[[Profiler Object:Column-Based Statistics|Column-Based Statistics]] | ||
|- | |- | ||
|[[Profiler Object:Column-Based String Statistics|Column-Based String Statistics]] | |[[Profiler Object:Column-Based String Statistics|Column-Based String Statistics]] | ||
Line 52: | Line 52: | ||
{| class="mw-collapsible" style="width:100%;" | {| class="mw-collapsible" style="width:100%;" | ||
|- align="left" | |- align="left" | ||
! style="color:black;"|[[Profiler Object:Iterators|Iterators]] | ! style="color:black; text-align:left;"|[[Profiler Object:Iterators|Iterators]] | ||
|- | |- | ||
|[[Profiler Object:Column-Based Value Frequency Table Iteration|Column-Based Value Frequency Table Iteration]] | |[[Profiler Object:Column-Based Value Frequency Table Iteration|Column-Based Value Frequency Table Iteration]] | ||
Line 73: | Line 73: | ||
{| class="mw-collapsible mw-collapsed" style="width:100%;" | {| class="mw-collapsible mw-collapsed" style="width:100%;" | ||
|- align="left" | |- align="left" | ||
! style="color:black;"|[[Profiler Object:Result Codes|Result Codes]] | ! style="color:black; text-align:left;"|[[Profiler Object:Result Codes|Result Codes]] | ||
|- | |- | ||
|[[Returned Result Codes:APIs#Profiler Object|Returned Result Codes]] | |[[Returned Result Codes:APIs#Profiler Object|Returned Result Codes]] |
Revision as of 18:54, 2 February 2015
These functions allow you to step through each distinct value pattern for a specific column.
StartPatternFrequency
This function initiates the iterator.
This function takes two parameters.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to start the iterator. |
Order | Order | This specifies how to order. See Order Enumeration for details. |
Syntax | profiler->StartPatternFrequency(columnNameStr, Order); |
---|---|
C | mdProfilerStartPatternFrequency(profiler,columnNameStr, Order); |
.Net | profiler.StartPatternFrequency(columnNameStr, Order); |
GetPatternFrequencyValue
This function returns a column's distinct pattern.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the column’s distinct pattern. |
Syntax | profiler->GetPatternFrequencyValue(columnNameStr); |
---|---|
C | integer = mdProfilerGetPatternFrequencyValue(profiler,columnNameStr); |
.Net | integer = profiler.GetPatternFrequencyValue(columnNameStr); |
GetPatternFrequencyRegEx
This function returns a regular expression for a distinct pattern. The regular expressions are 'tuned' for your specified data type. Where appropriate, letters or numbers may be lumped together using the 'one or more' quantifier.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get a regular expression for a distinct pattern. |
Syntax | profiler->GetPatternFrequencyRegEx(columnNameStr); |
---|---|
C | integer = mdProfilerGetPatternFrequencyRegEx(profiler,columnNameStr); |
.Net | integer = profiler.GetPatternFrequencyRegEx(columnNameStr); |
GetPatternFrequencyExample
This function returns an example value represented by the pattern. This will always be the first value encountered while profiling.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get an example value represented by the pattern. |
Syntax | profiler->GetPatternFrequencyExample(columnNameStr); |
---|---|
C | integer = mdProfilerGetPatternFrequencyExample(profiler,columnNameStr); |
.Net | integer = profiler.GetPatternFrequencyExample(columnNameStr); |
GetPatternFrequencyCount
This function returns the number of times the pattern appears in the profiled data for this particular column.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the number of times the pattern appears in the profiled data. |
Syntax | profiler->GetPatternFrequencyCount(columnNameStr); |
---|---|
C | integer = mdProfilerGetPatternFrequencyCount(profiler,columnNameStr); |
.Net | integer = profiler.GetPatternFrequencyCount(columnNameStr); |
GetNextPatternFrequency
This function steps to the next distinct pattern. It returns 1 if there are more distinct patterns or 0 when there are no more patterns.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the next distinct pattern. |
Syntax | profiler->GetNextPatternFrequency(columnNameStr); |
---|---|
C | integer = mdProfilerGetNextPatternFrequency(profiler,columnNameStr); |
.Net | integer = profiler.GetNextPatternFrequency(columnNameStr); |