SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
Macros | Functions
sion_keyvalue_inline.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "sion.h"
#include "sion_debug.h"
#include "sion_error_handler.h"
#include "sion_filedesc.h"
#include "sion_tools.h"
#include "sion_fd.h"
#include "sion_file.h"
#include "sion_metadata.h"
#include "sion_internal.h"
#include "sion_internal_seek.h"
#include "sion_printts.h"
#include "sion_keyvalue.h"
#include "sion_keyvalue_inline.h"
#include "sion_keyvalue_keymngr.h"
Include dependency graph for sion_keyvalue_inline.c:

Go to the source code of this file.

Macros

#define _XOPEN_SOURCE   700
 
#define TABLE_SIZE   127
 
#define SEARCH_TO_KEY   0
 
#define SEARCH_TO_NEXT   1
 
#define SEARCH_TO_END   2
 
#define DFUNCTION   "_sion_store_and_write_key_and_len_inline"
 
#define DFUNCTION   "_sion_write_value_inline"
 
#define DFUNCTION   "_sion_find_and_read_key_and_len_inline"
 
#define DFUNCTION   "_sion_read_value_inline"
 
#define DFUNCTION   "_sion_key_full_scan_inline"
 
#define DFUNCTION   "_sion_iterator_reset_inline"
 
#define DFUNCTION   "_sion_iterator_next_inline"
 
#define DFUNCTION   "_sion_seek_key_inline"
 
#define DFUNCTION   "_sion_key_list_iterator_reset_inline"
 
#define DFUNCTION   "_sion_iterator_next_inline"
 
#define DFUNCTION   "_sion_key_get_stat_inline"
 
#define DFUNCTION   "_sion_scan_forward_to_key"
 
#define DFUNCTION   "_sion_get_or_init_key_info"
 
#define DFUNCTION   "_sion_move_to_next_chunk"
 
#define DFUNCTION   "_sion_move_to_pos"
 
#define DFUNCTION   "_sion_write_data_to_chunks_inline"
 
#define DFUNCTION   "_sion_compute_next_position_inline"
 
#define DFUNCTION   "_sion_skip_data_from_chunks_inline"
 
#define DFUNCTION   "_sion_read_data_from_chunks_inline"
 
#define DFUNCTION   "_sion_keyval_dup_dataptr_inline"
 

Functions

_sion_keyvalue_keymngr_sion_get_or_init_key_info (_sion_filedesc *sion_filedesc)
 
int _sion_move_to_pos (_sion_filedesc *sion_filedesc, size_t pos)
 
int _sion_scan_forward_to_key (_sion_filedesc *sion_filedesc, uint64_t key, int search_mode)
 
int _sion_move_to_next_chunk (_sion_filedesc *sion_filedesc)
 
size_t _sion_write_data_to_chunks_inline (_sion_filedesc *sion_filedesc, const void *data, sion_int64 bytes_to_write)
 
sion_int64 _sion_compute_next_position_inline (_sion_filedesc *sion_filedesc, sion_int64 bytes_to_read)
 
size_t _sion_skip_data_from_chunks_inline (_sion_filedesc *sion_filedesc, sion_int64 bytes_to_read)
 
size_t _sion_read_data_from_chunks_inline (_sion_filedesc *sion_filedesc, void *data, sion_int64 bytes_to_read)
 
size_t _sion_store_and_write_key_and_len_inline (_sion_filedesc *sion_filedesc, uint64_t key, size_t len)
 
size_t _sion_write_value_inline (_sion_filedesc *sion_filedesc, const void *data, uint64_t key, size_t len)
 
int _sion_find_and_read_key_and_len_inline (_sion_filedesc *sion_filedesc, uint64_t key, size_t len, size_t *datalen)
 
size_t _sion_read_value_inline (_sion_filedesc *sion_filedesc, void *data, uint64_t key, size_t len)
 
int _sion_key_full_scan_inline (_sion_filedesc *sion_filedesc)
 
int _sion_iterator_reset_inline (_sion_filedesc *sion_filedesc)
 
int _sion_iterator_next_inline (_sion_filedesc *sion_filedesc, uint64_t *keyptr, size_t *sizeptr)
 
int _sion_seek_key_inline (_sion_filedesc *sion_filedesc, uint64_t key, int blocknum, sion_int64 posinblock)
 
int _sion_key_list_iterator_reset_inline (_sion_filedesc *sion_filedesc)
 
int _sion_key_list_iterator_next_inline (_sion_filedesc *sion_filedesc, uint64_t *keyptr)
 
int _sion_key_get_stat_inline (_sion_filedesc *sion_filedesc, uint64_t searchkey, sion_key_stat_t *keystat)
 
int _sion_keyval_dup_dataptr_inline (_sion_filedesc *sion_filedesc, _sion_filedesc *new_filedesc)