Typedefs | Functions
ardea.cpp File Reference

This is a simple test program for functions defined in ibis::tablex. More...

#include "ibis.h"
#include <set>
#include <memory>
#include <iomanip>

Typedefs

typedef std::set< const char *, ibis::lessi > qList
 

Functions

int main (int argc, char **argv)
 

Detailed Description

This is a simple test program for functions defined in ibis::tablex.

The user may specify a set of records to be read by using a combination of -m option (for meta data, i.e., column names and types) and -t or -r options or specify a SQL dump file. Option -t is used to specify the name of a text/CSV file and option -r is used to specify a row of text/CSV data on the command line. Specify a SQL dump file with '-sqldump filename'.

The caller may further specify a number of queries to be run on the data after they are written to disk.

If the directory specified in -d option (default to "tmp") contains data, the new records will be appended. When the names match, the records are assumed to the same type (not checked). When the names do not match, the rows with missing values are padded with NULL values. See ibis::tablex::appendRow for more information about NULL values.

If the user does not specify any new data, it will write a built-in set of data (91 rows and 8 columns) and then run 10 built-in queries with known numbers of hits.

Here is a list of arguments.

Note
This program uses standard unix functions to perform the read and write operations. If your input data file is not using unix-style end-of-line character, then it is possible that this program will not process the end-of-line correctly. If you see this program putting an entire line of text into one field, it is likely that you are experiencing the problem with the end-of-line characters. Please convert the end-of-line to unix-type.
This file is named after Cattle Egret, whose Latin name is Ardea ibis.

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive