Profiler Object:Column-Based Word Table Iteration: Difference between revisions
Jump to navigation
Jump to search
Created page with " ← Profiler Object Reference {| class="mw-collapsible" cellspacing="2" style="background-color:#f9f9f9; border:1px solid #aaaaaa; font-size..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[Profiler Object:Reference|← Profiler Object Reference]] | [[Profiler Object:Reference|← Profiler Object Reference]] | ||
{ | {{ProfilerObjectNav | ||
|IteratorsCollapse= | |||
}} | |||
{ | |||
| | |||
Line 87: | Line 12: | ||
==StartWordFrequency== | ==StartWordFrequency== | ||
This function initiates the iterator. | This function initiates the iterator. It returns 1 to indicate if there are records to iterate through. Otherwise it returns 0. | ||
This function takes two parameters. | This function takes two parameters. | ||
Line 102: | Line 27: | ||
{{Object Syntax | {{Object Syntax | ||
|Syntax=profiler->StartWordFrequency(columnNameStr, Order); | |Syntax=int = profiler->StartWordFrequency(columnNameStr, Order); | ||
|C=mdProfilerStartWordFrequency(profiler,columnNameStr, Order); | |C=int = mdProfilerStartWordFrequency(profiler,columnNameStr, Order); | ||
|.Net=profiler.StartWordFrequency(columnNameStr, Order); | |.Net=integer = profiler.StartWordFrequency(columnNameStr, Order); | ||
}} | }} | ||
Line 121: | Line 46: | ||
{{Object Syntax | {{Object Syntax | ||
|Syntax=profiler->GetWordFrequencyValue(columnNameStr); | |Syntax=profiler->GetWordFrequencyValue(columnNameStr); | ||
|C= | |C=const char* = mdProfilerGetWordFrequencyValue(profiler,columnNameStr); | ||
|.Net=string = profiler.GetWordFrequencyValue(columnNameStr); | |.Net=string = profiler.GetWordFrequencyValue(columnNameStr); | ||
}} | }} |
Latest revision as of 16:33, 15 May 2015
These functions allow you to step through each distinct word for a specific column.
StartWordFrequency
This function initiates the iterator. It returns 1 to indicate if there are records to iterate through. Otherwise it returns 0.
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 | int = profiler->StartWordFrequency(columnNameStr, Order); |
---|---|
C | int = mdProfilerStartWordFrequency(profiler,columnNameStr, Order); |
.Net | integer = profiler.StartWordFrequency(columnNameStr, Order); |
GetWordFrequencyValue
This function returns a column's distinct word.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the column’s distinct word. |
Syntax | profiler->GetWordFrequencyValue(columnNameStr); |
---|---|
C | const char* = mdProfilerGetWordFrequencyValue(profiler,columnNameStr); |
.Net | string = profiler.GetWordFrequencyValue(columnNameStr); |
GetWordFrequencyCount
This function returns the number of times the word appears in the profiled data for this particular column. Multiple occurrences of the same word in a single record will all be counted.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the number of times the word appears in the profiled data. |
Syntax | profiler->GetWordFrequencyCount(columnNameStr); |
---|---|
C | integer = mdProfilerGetWordFrequencyCount(profiler,columnNameStr); |
.Net | integer = profiler.GetWordFrequencyCount(columnNameStr); |
GetNextWordFrequency
This function steps to the next distinct word. 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 word. |
Syntax | profiler->GetNextWordFrequency(columnNameStr); |
---|---|
C | integer = mdProfilerGetNextWordFrequency(profiler,columnNameStr); |
.Net | integer = profiler.GetNextWordFrequency(columnNameStr); |