SE_stream_calculate_table_statistics

Returns statistics for a table and column

Usage syntax

LONG SE_stream_calculate_table_statistics
(SE_STREAM stream,
const CHAR *column,
LONG mask,
const SE_QUERYINFO query_info,
LONG max_distinct,
SE_STATS **stats);

Parameters
stream The stream handle
column A pointer to the column name
mask The statistics bit mask
query_info A pointer to an SE_QUERYINFO structure
max_distinct The maximum number of distinct classes
stats A pointer to SE_STATS structure
Description

SE_stream_calculate_table_statistics returns a set of statistics for a table and column. You can use a simple column name or a complex expression for the column parameter. Use the queryinfo structure to specify the table and any optional WHERE clause. You can join to other tables. Any state or spatial constraints set for the stream are used. The stats structure is allocated by the function, but you must free it with SE_table_free_stats . If the max_distinct parameter is zero, the MAXDISTINCT value from the SERVER_CONFIG (or sde_server_config) table is used to limit the number of classes. If that value is also zero, the number of distinct classes is unlimited.

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_DB_IO_ERROR

SE_INVALID_CONNECTION

SE_INVALID_DISTINCT_TYPE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_QUERYINFO_OBJECT

SE_INVALID_STATS_TYPE

SE_INVALID_STREAM_TYPE

SE_INVALID_WHERE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED

SE_STREAM_IN_PROGRESS

SE_TABLE_NOEXIST

SE_TOO_MANY_DISTINCTS