Profiler Object:Column-Based Value Date/Time Table Iteration
Jump to navigation
Jump to search
These functions allow you to step through each distinct value date/time for a specific column. Date values are gathered for all column types, not just date/time data types.
StartDateFrequency
This function initiates the iterator. It returns 1 to indicate if there are records to iterate through. Otherwise it returns 0.
This function takes three 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. |
Date Span | DateSpan | You must specify a DateSpan - the resolution to be used when stepping through each value (e.g., date, month, year, etc). |
Date Span Enumerations
Value | Name | Description |
---|---|---|
1 | DateSpanDate | Group by date |
2 | DateSpanTime | Group by time |
3 | DateSpanHour | Group by hour |
4 | DateSpanMinute | Group by minute |
5 | DateSpanSecond | Group by second |
6 | DateSpanMillisecond | Group by millisecond |
7 | DateSpanDayOfWeek | Group by day of the week |
8 | DateSpanDay | Group by day of the month |
9 | DateSpanWeek | Group by week of the year |
10 | DateSpanMonth | Group by month |
11 | DateSpanQuarter | Group by quarter |
12 | DateSpanYear | Group by year |
13 | DateSpanDecade | Group by decade |
14 | DateSpanCentury | Group by century |
Syntax | int = profiler->StartDateFrequency(columnNameStr, Order, DateSpan); |
---|---|
C | int = mdProfilerStartDateFrequency(profiler,columnNameStr, Order, DateSpan); |
.Net | integer = profiler.StartDateFrequency(columnNameStr, Order, DateSpan); |
GetDateFrequencyValue
This function returns a column's distinct value.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the column’s distinct value. |
Syntax | profiler->GetDateFrequencyValue(columnNameStr); |
---|---|
C | const char* = mdProfilerGetDateFrequencyValue(profiler,columnNameStr); |
.Net | string = profiler.GetDateFrequencyValue(columnNameStr); |
GetDateFrequencyCount
This function returns the number of times the value appeared 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 value appeared in the profiled data. |
Syntax | profiler->GetDateFrequencyCount(columnNameStr); |
---|---|
C | integer = mdProfilerGetDateFrequencyCount(profiler,columnNameStr); |
.Net | integer = profiler.GetDateFrequencyCount(columnNameStr); |
GetNextDateFrequency
This function steps to the next distinct value. It returns 1 if there are more distinct values or 0 when there are no more values.
This function takes one parameter.
Parameters
Name | Data Type | Description |
---|---|---|
ColumnName | String | Column Name to get the next distinct value. |
Syntax | profiler->GetNextDateFrequency(columnNameStr); |
---|---|
C | integer = mdProfilerGetNextDateFrequency(profiler,columnNameStr); |
.Net | integer = profiler.GetNextDateFrequency(columnNameStr); |