SIONlib
1.7.7
Scalable I/O library for parallel access to task-local files
|
Functions | |
size_t | sion_fwrite_key (const void *data, uint64_t key, size_t size, size_t nitems, int sid) |
Writes data for key. More... | |
size_t | sion_fread_key (void *data, uint64_t key, size_t size, size_t nitems, int sid) |
Read data for key. More... | |
int | sion_key_full_scan (int sid) |
Performs a full scan of all meta data in current file. More... | |
int | sion_fread_key_iterator_reset (int sid) |
Resets key iterator. More... | |
int | sion_fread_key_iterator_next (int sid, uint64_t *keyptr, size_t *sizeptr) |
Forward to next key. More... | |
int | sion_seek_key (int sid, uint64_t key, int entrynum, sion_int64 posinentry) |
Seek to position in key. More... | |
int | sion_get_keyval_mode (int sid) |
Return selected mode for key value. More... | |
char * | sion_keyval_type_to_str (int type) |
Returns key value mode as string. More... | |
int | sion_key_list_iterator_reset (int sid) |
Resets key iterator. More... | |
int | sion_key_list_iterator_next (int sid, uint64_t *keyptr) |
Forward to next key. More... | |
int | sion_key_get_stat (int sid, uint64_t key, sion_key_stat_t *keystatptr) |
get statistics about key More... | |
API doc for key value feature of SIONlib.
size_t sion_fread_key | ( | void * | data, |
uint64_t | key, | ||
size_t | size, | ||
size_t | nitems, | ||
int | sid | ||
) |
Read data for key.
Reads data from sion file associated to key. This function uses the diffenent implementations of which one is chosen with the open call.
[out] | data | buffer to be read into |
[in] | key | key associated to the data |
[in] | size | size of single item |
[in] | nitems | number of items |
[in] | sid | sion file handle |
Definition at line 202 of file sion_keyvalue.c.
int sion_fread_key_iterator_next | ( | int | sid, |
uint64_t * | keyptr, | ||
size_t * | sizeptr | ||
) |
Forward to next key.
[in] | sid | sion file handle |
[out] | keyptr | filled with next key |
[out] | sizeptr | filled with next size |
Definition at line 326 of file sion_keyvalue.c.
int sion_fread_key_iterator_reset | ( | int | sid | ) |
Resets key iterator.
[in] | sid | sion file handle |
Definition at line 290 of file sion_keyvalue.c.
size_t sion_fwrite_key | ( | const void * | data, |
uint64_t | key, | ||
size_t | size, | ||
size_t | nitems, | ||
int | sid | ||
) |
Writes data for key.
Writes data to sion file associating it to key. This function uses the diffenent implementations of which one is chosen with the open call.
[in] | data | data to be written |
[in] | key | key associated to the data |
[in] | size | size of single item |
[in] | nitems | number of items |
[in] | sid | sion file handle |
Definition at line 143 of file sion_keyvalue.c.
int sion_get_keyval_mode | ( | int | sid | ) |
Return selected mode for key value.
[in] | sid | sion file handle |
Definition at line 406 of file sion_keyvalue.c.
References SION_KEYVAL_UNKNOWN.
int sion_key_full_scan | ( | int | sid | ) |
Performs a full scan of all meta data in current file.
[in] | sid | sion file handle |
Definition at line 254 of file sion_keyvalue.c.
int sion_key_get_stat | ( | int | sid, |
uint64_t | key, | ||
sion_key_stat_t * | keystatptr | ||
) |
get statistics about key
[in] | sid | sion file handle |
[in] | key | key |
[out] | keystatptr | data structure which will be filled |
Definition at line 532 of file sion_keyvalue.c.
int sion_key_list_iterator_next | ( | int | sid, |
uint64_t * | keyptr | ||
) |
Forward to next key.
[in] | sid | sion file handle |
[out] | keyptr | filled with next key |
Definition at line 496 of file sion_keyvalue.c.
int sion_key_list_iterator_reset | ( | int | sid | ) |
Resets key iterator.
[in] | sid | sion file handle |
Definition at line 461 of file sion_keyvalue.c.
char* sion_keyval_type_to_str | ( | int | type | ) |
Returns key value mode as string.
[in] | type | mode to be converted |
Definition at line 438 of file sion_keyvalue.c.
int sion_seek_key | ( | int | sid, |
uint64_t | key, | ||
int | entrynum, | ||
sion_int64 | posinentry | ||
) |
Seek to position in key.
[in] | sid | sion file handle |
[in] | key | key to seek in |
[in] | entrynum | nth occurrence of key or SION_ABSOLUTE_POS for absolute position |
[in] | posinentry | position inside of entry |
Definition at line 365 of file sion_keyvalue.c.