Analyzers

Analyzers — A suite of simple DeeAnalyzers of common operations

Synopsis

#include <dee.h>

DeeAnalyzer*        dee_analyzer_new_for_key_column     (guint column);
DeeAnalyzer*        dee_analyzer_new_for_full_text_column
                                                        (guint column);
DeeAnalyzer*        dee_analyzer_new_for_int32_column   (guint column);
DeeAnalyzer*        dee_analyzer_new_for_uint32_column  (guint column);

Description

Details

dee_analyzer_new_for_key_column ()

DeeAnalyzer*        dee_analyzer_new_for_key_column     (guint column);

Create a DeeAnalyzer that takes the string from a column in the model and treats that string as one single term.

column :

The index of the column to get strings from

Returns :

A newly allocated DeeAnalyzer. Do not modify it. Free with g_free(). [transfer full]

dee_analyzer_new_for_full_text_column ()

DeeAnalyzer*        dee_analyzer_new_for_full_text_column
                                                        (guint column);

Create a DeeAnalyzer that does a (simple) full text analysis of textual data in some column.

The terms will be split on any non-alphanumeric character, run through g_utf8_normalize(), and then g_utf8_strdown().

column :

The index of the column to get full text from

Returns :

A newly allocated DeeAnalyzer. Do not modify it. Free with g_free(). [transfer full]

dee_analyzer_new_for_int32_column ()

DeeAnalyzer*        dee_analyzer_new_for_int32_column   (guint column);

Create a DeeAnalyzer that extracts an 32 bit integer from a given column in a DeeModel.

column :

The index of the column to get a gint32 from

Returns :

A newly allocated DeeAnalyzer. Do not modify it. Free with g_free(). [transfer full]

dee_analyzer_new_for_uint32_column ()

DeeAnalyzer*        dee_analyzer_new_for_uint32_column  (guint column);

Create a DeeAnalyzer that extracts an unsigned 32 integer from a given column in a DeeModel.

column :

The index of the column to get a guint32 from

Returns :

A newly allocated DeeAnalyzer. Do not modify it. Free with g_free(). [transfer full]