MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
textset_group_agg.c File Reference

A simple program that reads from a CSV file a set of records containing text sets, group them by the key % 10, and at the end apply a union aggregate to the groups. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <meos.h>
#include <meos_internal.h>

Data Structures

struct  textset_record
 

Macros

#define MAX_LENGTH_HEADER   1024
 
#define MAX_LENGTH_SET   1024
 

Functions

int main (void)
 

Detailed Description

A simple program that reads from a CSV file a set of records containing text sets, group them by the key % 10, and at the end apply a union aggregate to the groups.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o textset_group_agg textset_group_agg.c -L/usr/local/lib -lmeos
Note
The program illustrates the expandable set data structure.