IODA Bundle
odccapi.h File Reference
#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for odccapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void * oda_ptr
 
typedef void * oda_read_iterator_ptr
 
typedef void * oda_select_iterator_ptr
 
typedef void * oda_writer_ptr
 
typedef void * oda_write_iterator_ptr
 
typedef void oda_read_iterator
 
typedef void oda_select_iterator
 
typedef void oda_writer
 
typedef void oda_write_iterator
 

Functions

void odb_start ()
 
void odb_start_with_args (int argc, char *argv[])
 
unsigned int odb_get_headerBufferSize ()
 
void odb_set_headerBufferSize (unsigned int)
 
unsigned int odb_get_setvbufferSize ()
 
void odb_set_setvbufferSize (unsigned int)
 
int odc_version (const char **)
 
int odc_git_sha1 (const char **)
 
unsigned int odc_format_version_major ()
 
unsigned int odc_format_version_minor ()
 
oda_ptr odb_read_create (const char *, int *)
 
oda_ptr odb_create (const char *, int *)
 
int odb_read_destroy (oda_ptr)
 
int odb_destroy (oda_ptr)
 
oda_read_iterator_ptr odb_create_read_iterator (oda_ptr, const char *, int *)
 
int odb_read_iterator_destroy (oda_read_iterator_ptr)
 
int odb_read_iterator_get_no_of_columns (oda_read_iterator_ptr, int *)
 
int odb_read_iterator_get_column_size_doubles (oda_read_iterator_ptr, int, int *)
 
int odb_read_iterator_get_column_offset (oda_read_iterator_ptr, int, int *)
 
int odb_read_iterator_get_column_type (oda_read_iterator_ptr, int, int *)
 
int odb_read_iterator_get_column_name (oda_read_iterator_ptr, int, char **, int *)
 
int odb_read_iterator_get_bitfield (oda_read_iterator_ptr, int, char **, char **, int *, int *)
 
int odb_read_iterator_get_next_row (oda_read_iterator_ptr, int, double *, int *)
 
int odb_read_iterator_get_missing_value (oda_read_iterator_ptr, int, double *)
 
int odb_read_iterator_get_row_buffer_size_doubles (oda_read_iterator_ptr, int *)
 
oda_ptr odb_select_create (const char *, int *)
 
int odb_select_destroy (oda_ptr)
 
oda_select_iterator_ptr odb_create_select_iterator (oda_ptr, const char *, int *)
 
oda_select_iterator_ptr odb_create_select_iterator_from_file (oda_ptr, const char *, const char *, int *)
 
int odb_select_iterator_destroy (oda_select_iterator_ptr)
 
int odb_select_iterator_get_no_of_columns (oda_select_iterator_ptr, int *)
 
int odb_select_iterator_get_column_size_doubles (oda_read_iterator_ptr, int, int *)
 
int odb_select_iterator_get_column_offset (oda_read_iterator_ptr, int, int *)
 
int odb_select_iterator_get_column_type (oda_select_iterator_ptr, int, int *)
 
int odb_select_iterator_get_column_name (oda_select_iterator_ptr, int, char **, int *)
 
int odb_select_iterator_get_bitfield (oda_select_iterator_ptr, int, char **, char **, int *, int *)
 
int odb_select_iterator_get_next_row (oda_select_iterator_ptr, int, double *, int *)
 
int odb_select_iterator_get_row_buffer_size_doubles (oda_read_iterator_ptr, int *)
 
oda_writer_ptr odb_writer_create (const char *, int *)
 
int odb_writer_destroy (oda_writer_ptr)
 
int odb_write_iterator_destroy (oda_write_iterator_ptr)
 
oda_write_iterator_ptr odb_create_write_iterator (oda_writer_ptr, const char *, int *)
 
oda_write_iterator_ptr odb_create_append_iterator (oda_writer_ptr, const char *, int *)
 
int odb_write_iterator_set_no_of_columns (oda_write_iterator_ptr, int)
 
int odb_write_iterator_set_column (oda_write_iterator_ptr, int, int, const char *)
 
int odb_write_iterator_set_bitfield (oda_write_iterator_ptr, int, int, const char *, const char *, const char *)
 
int odb_write_iterator_set_column_size_doubles (oda_write_iterator_ptr, int, int)
 
int odb_write_iterator_get_row_buffer_size_doubles (oda_write_iterator_ptr, int *)
 
int odb_write_iterator_get_column_offset (oda_write_iterator_ptr, int, int *)
 
int odb_write_iterator_set_missing_value (oda_write_iterator_ptr, int, double)
 
int odb_write_iterator_write_header (oda_write_iterator_ptr)
 
int odb_write_iterator_set_next_row (oda_write_iterator_ptr, double *, int)
 
double odb_count (const char *)
 
int get_blocks_offsets (const char *fileName, size_t *numberOfBlocks, off_t **offsets, size_t **sizes)
 
int release_blocks_offsets (off_t **)
 
int release_blocks_sizes (size_t **)
 

Typedef Documentation

◆ oda_ptr

typedef void* oda_ptr

Definition at line 30 of file odccapi.h.

◆ oda_read_iterator

typedef void oda_read_iterator

Definition at line 38 of file odccapi.h.

◆ oda_read_iterator_ptr

typedef void* oda_read_iterator_ptr

Definition at line 31 of file odccapi.h.

◆ oda_select_iterator

typedef void oda_select_iterator

Definition at line 39 of file odccapi.h.

◆ oda_select_iterator_ptr

typedef void* oda_select_iterator_ptr

Definition at line 32 of file odccapi.h.

◆ oda_write_iterator

typedef void oda_write_iterator

Definition at line 42 of file odccapi.h.

◆ oda_write_iterator_ptr

typedef void* oda_write_iterator_ptr

Definition at line 35 of file odccapi.h.

◆ oda_writer

typedef void oda_writer

Definition at line 41 of file odccapi.h.

◆ oda_writer_ptr

typedef void* oda_writer_ptr

Definition at line 34 of file odccapi.h.

Function Documentation

◆ get_blocks_offsets()

int get_blocks_offsets ( const char *  fileName,
size_t *  numberOfBlocks,
off_t **  offsets,
size_t **  sizes 
)

Definition at line 102 of file odccapi.cc.

◆ odb_count()

double odb_count ( const char *  filename)

Definition at line 90 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_create()

oda_ptr odb_create ( const char *  config,
int *  err 
)

Definition at line 151 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_create_append_iterator()

oda_write_iterator_ptr odb_create_append_iterator ( oda_writer_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 375 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_create_read_iterator()

oda_read_iterator_ptr odb_create_read_iterator ( oda_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 198 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_create_select_iterator()

oda_select_iterator_ptr odb_create_select_iterator ( oda_ptr  co,
const char *  sql,
int *  err 
)

Definition at line 215 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_create_select_iterator_from_file()

oda_select_iterator_ptr odb_create_select_iterator_from_file ( oda_ptr  co,
const char *  sql,
const char *  filename,
int *  err 
)

Definition at line 240 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_create_write_iterator()

oda_write_iterator_ptr odb_create_write_iterator ( oda_writer_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 387 of file odccapi.cc.

◆ odb_destroy()

int odb_destroy ( oda_ptr  o)

Definition at line 181 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_get_headerBufferSize()

unsigned int odb_get_headerBufferSize ( )

Definition at line 132 of file odccapi.cc.

◆ odb_get_setvbufferSize()

unsigned int odb_get_setvbufferSize ( )

Definition at line 135 of file odccapi.cc.

◆ odb_read_create()

oda_ptr odb_read_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 144 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_destroy()

int odb_read_destroy ( oda_ptr  o)

Definition at line 175 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_iterator_destroy()

int odb_read_iterator_destroy ( oda_read_iterator_ptr  it)

Definition at line 252 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_iterator_get_bitfield()

int odb_read_iterator_get_bitfield ( oda_read_iterator_ptr  it,
int  index,
char **  bitfield_names,
char **  bitfield_sizes,
int *  nSize,
int *  sSize 
)

Definition at line 527 of file odccapi.cc.

◆ odb_read_iterator_get_column_name()

int odb_read_iterator_get_column_name ( oda_read_iterator_ptr  it,
int  n,
char **  name,
int *  size_name 
)

Definition at line 320 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_read_iterator_get_column_offset()

int odb_read_iterator_get_column_offset ( oda_read_iterator_ptr  it,
int  n,
int *  offset 
)

Definition at line 278 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_column_size_doubles()

int odb_read_iterator_get_column_size_doubles ( oda_read_iterator_ptr  it,
int  n,
int *  size 
)

Definition at line 271 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_column_type()

int odb_read_iterator_get_column_type ( oda_read_iterator_ptr  it,
int  n,
int *  type 
)

Definition at line 306 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_read_iterator_get_missing_value()

int odb_read_iterator_get_missing_value ( oda_read_iterator_ptr  ri,
int  index,
double *  value 
)

Definition at line 479 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_next_row()

int odb_read_iterator_get_next_row ( oda_read_iterator_ptr  it,
int  count,
double *  data,
int *  new_dataset 
)

Definition at line 336 of file odccapi.cc.

◆ odb_read_iterator_get_no_of_columns()

int odb_read_iterator_get_no_of_columns ( oda_read_iterator_ptr  it,
int *  numberOfColumns 
)

Definition at line 264 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_read_iterator_get_row_buffer_size_doubles()

int odb_read_iterator_get_row_buffer_size_doubles ( oda_read_iterator_ptr  ri,
int *  size 
)

Definition at line 493 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_create()

oda_ptr odb_select_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 157 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_select_destroy()

int odb_select_destroy ( oda_ptr  o)

Definition at line 186 of file odccapi.cc.

◆ odb_select_iterator_destroy()

int odb_select_iterator_destroy ( oda_select_iterator_ptr  it)

Definition at line 258 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_select_iterator_get_bitfield()

int odb_select_iterator_get_bitfield ( oda_select_iterator_ptr  it,
int  index,
char **  bitfield_names,
char **  bitfield_sizes,
int *  nSize,
int *  sSize 
)

Definition at line 535 of file odccapi.cc.

◆ odb_select_iterator_get_column_name()

int odb_select_iterator_get_column_name ( oda_select_iterator_ptr  it,
int  n,
char **  name,
int *  size_name 
)

Definition at line 328 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_select_iterator_get_column_offset()

int odb_select_iterator_get_column_offset ( oda_read_iterator_ptr  it,
int  n,
int *  offset 
)

Definition at line 299 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_iterator_get_column_size_doubles()

int odb_select_iterator_get_column_size_doubles ( oda_read_iterator_ptr  it,
int  n,
int *  size 
)

Definition at line 292 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_iterator_get_column_type()

int odb_select_iterator_get_column_type ( oda_select_iterator_ptr  it,
int  n,
int *  type 
)

Definition at line 313 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_select_iterator_get_next_row()

int odb_select_iterator_get_next_row ( oda_select_iterator_ptr  it,
int  count,
double *  data,
int *  new_dataset 
)

Definition at line 358 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_select_iterator_get_no_of_columns()

int odb_select_iterator_get_no_of_columns ( oda_select_iterator_ptr  it,
int *  numberOfColumns 
)

Definition at line 285 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_select_iterator_get_row_buffer_size_doubles()

int odb_select_iterator_get_row_buffer_size_doubles ( oda_read_iterator_ptr  ri,
int *  size 
)

Definition at line 500 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_set_headerBufferSize()

void odb_set_headerBufferSize ( unsigned int  n)

Definition at line 133 of file odccapi.cc.

◆ odb_set_setvbufferSize()

void odb_set_setvbufferSize ( unsigned int  n)

Definition at line 136 of file odccapi.cc.

◆ odb_start()

void odb_start ( )

Definition at line 74 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_start_with_args()

void odb_start_with_args ( int  argc,
char *  argv[] 
)

Definition at line 85 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_destroy()

int odb_write_iterator_destroy ( oda_write_iterator_ptr  wi)

Definition at line 399 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_get_column_offset()

int odb_write_iterator_get_column_offset ( oda_write_iterator_ptr  wi,
int  n,
int *  offset 
)

Definition at line 472 of file odccapi.cc.

◆ odb_write_iterator_get_row_buffer_size_doubles()

int odb_write_iterator_get_row_buffer_size_doubles ( oda_write_iterator_ptr  wi,
int *  size 
)

Definition at line 465 of file odccapi.cc.

◆ odb_write_iterator_set_bitfield()

int odb_write_iterator_set_bitfield ( oda_write_iterator_ptr  wi,
int  index,
int  type,
const char *  name,
const char *  bitfieldNames,
const char *  bitfieldSizes 
)

Definition at line 418 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_set_column()

int odb_write_iterator_set_column ( oda_write_iterator_ptr  wi,
int  index,
int  type,
const char *  name 
)

Definition at line 412 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_set_column_size_doubles()

int odb_write_iterator_set_column_size_doubles ( oda_write_iterator_ptr  wi,
int  n,
int  size 
)

Definition at line 458 of file odccapi.cc.

◆ odb_write_iterator_set_missing_value()

int odb_write_iterator_set_missing_value ( oda_write_iterator_ptr  wi,
int  index,
double  value 
)

Definition at line 507 of file odccapi.cc.

◆ odb_write_iterator_set_next_row()

int odb_write_iterator_set_next_row ( oda_write_iterator_ptr  wi,
double *  data,
int  count 
)

Definition at line 521 of file odccapi.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ odb_write_iterator_set_no_of_columns()

int odb_write_iterator_set_no_of_columns ( oda_write_iterator_ptr  wi,
int  n 
)

Definition at line 405 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_write_header()

int odb_write_iterator_write_header ( oda_write_iterator_ptr  wi)

Definition at line 514 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_writer_create()

oda_writer_ptr odb_writer_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 167 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_writer_destroy()

int odb_writer_destroy ( oda_writer_ptr  o)

Definition at line 192 of file odccapi.cc.

Here is the caller graph for this function:

◆ odc_format_version_major()

unsigned int odc_format_version_major ( )

Definition at line 138 of file odccapi.cc.

Here is the call graph for this function:

◆ odc_format_version_minor()

unsigned int odc_format_version_minor ( )

Definition at line 139 of file odccapi.cc.

Here is the call graph for this function:

◆ odc_git_sha1()

int odc_git_sha1 ( const char **  o)

Definition at line 81 of file odccapi.cc.

Here is the call graph for this function:

◆ odc_version()

int odc_version ( const char **  version)

Version accessors Human readable release version e.g. 1.2.3

Definition at line 269 of file api/odc.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ release_blocks_offsets()

int release_blocks_offsets ( off_t **  offsets)

Definition at line 129 of file odccapi.cc.

◆ release_blocks_sizes()

int release_blocks_sizes ( size_t **  sizes)

Definition at line 130 of file odccapi.cc.