|
| int | get () |
| | Read one byte when buffer is empty.
|
| int | block_write (const void *, size_t, my_off_t) |
| void | close_cached_file () |
| bool | real_open_cached_file () |
| int | end_io_cache () |
| | Free an io_cache_st object.
|
| int | init_io_cache (int file, size_t cachesize, cache_type type, my_off_t seek_offset, bool use_async_io, myf cache_myflags) |
| | Initialize an io_cache_st object.
|
| void | init_functions () |
| bool | reinit_io_cache (cache_type type_arg, my_off_t seek_offset, bool use_async_io, bool clear_cache) |
| | Reset the cache.
|
| void | setup_io_cache () |
| | Setup internal pointers inside io_cache_st.
|
| bool | open_cached_file (const char *dir, const char *prefix, size_t cache_size, myf cache_myflags) |
| int | flush (int need_append_buffer_lock=1) |
| void | clear () |
| bool | inited () const |
| my_off_t | tell () const |
| int | read (void *Buffer0, size_t Count) |
| int | write (const void *Buffer0, size_t Count) |
Definition at line 30 of file iocache.h.
◆ IO_CACHE_CALLBACK
| typedef int(* drizzled::internal::io_cache_st::IO_CACHE_CALLBACK) (io_cache_st *) |
◆ io_cache_st()
| drizzled::internal::io_cache_st::io_cache_st |
( |
| ) |
|
|
inline |
◆ block_write()
| int drizzled::internal::io_cache_st::block_write |
( |
const void * | Buffer, |
|
|
size_t | Count, |
|
|
my_off_t | pos ) |
◆ clear()
| void drizzled::internal::io_cache_st::clear |
( |
| ) |
|
|
inline |
◆ close_cached_file()
| void drizzled::internal::io_cache_st::close_cached_file |
( |
| ) |
|
◆ end_io_cache()
| int drizzled::internal::io_cache_st::end_io_cache |
( |
| ) |
|
Free an io_cache_st object.
@detail It's currently safe to call this if one has called init_io_cache() on the 'info' object, even if init_io_cache() failed. This function is also safe to call twice with the same handle.
- Parameters
-
- Return values
-
Definition at line 685 of file mf_iocache.cc.
◆ flush()
| int drizzled::internal::io_cache_st::flush |
( |
int | need_append_buffer_lock = 1 | ) |
|
◆ get()
| int drizzled::internal::io_cache_st::get |
( |
| ) |
|
Read one byte when buffer is empty.
Definition at line 473 of file mf_iocache.cc.
◆ init_functions()
| void drizzled::internal::io_cache_st::init_functions |
( |
| ) |
|
◆ init_io_cache()
| int drizzled::internal::io_cache_st::init_io_cache |
( |
int | file_arg, |
|
|
size_t | cachesize, |
|
|
cache_type | type, |
|
|
my_off_t | seek_offset, |
|
|
bool | use_async_io, |
|
|
myf | cache_myflags ) |
Initialize an io_cache_st object.
- Parameters
-
| file | File that should be associated with the handler If == -1 then real_open_cached_file() will be called when it's time to open file. |
| cachesize | Size of buffer to allocate for read/write If == 0 then use my_default_record_cache_size |
| type | Type of cache |
| seek_offset | Where cache should start reading/writing |
| use_async_io | Set to 1 if we should use async_io (if avaiable) |
| cache_myflags | Bitmap of different flags MY_WME | MY_FAE | MY_NABP | MY_FNABP | MY_DONT_CHECK_FILESIZE |
- Return values
-
Definition at line 174 of file mf_iocache.cc.
◆ inited()
| bool drizzled::internal::io_cache_st::inited |
( |
| ) |
const |
|
inline |
◆ open_cached_file()
| bool drizzled::internal::io_cache_st::open_cached_file |
( |
const char * | dir, |
|
|
const char * | prefix, |
|
|
size_t | cache_size, |
|
|
myf | cache_myflags ) |
◆ read()
| int drizzled::internal::io_cache_st::read |
( |
void * | Buffer0, |
|
|
size_t | Count ) |
|
inline |
◆ real_open_cached_file()
| bool drizzled::internal::io_cache_st::real_open_cached_file |
( |
| ) |
|
◆ reinit_io_cache()
| bool drizzled::internal::io_cache_st::reinit_io_cache |
( |
cache_type | type_arg, |
|
|
my_off_t | seek_offset, |
|
|
bool | use_async_io, |
|
|
bool | clear_cache ) |
Reset the cache.
@detail Use this to reset cache to re-start reading or to change the type between READ_CACHE <-> WRITE_CACHE If we are doing a reinit of a cache where we have the start of the file in the cache, we are reusing this memory without flushing it to disk.
Definition at line 280 of file mf_iocache.cc.
◆ setup_io_cache()
| void drizzled::internal::io_cache_st::setup_io_cache |
( |
| ) |
|
Setup internal pointers inside io_cache_st.
This is called on automatically on init or reinit of io_cache_st It must be called externally if one moves or copies an io_cache_st object.
- Parameters
-
| info | Cache handler to setup |
Definition at line 121 of file mf_iocache.cc.
◆ tell()
| my_off_t drizzled::internal::io_cache_st::tell |
( |
| ) |
const |
|
inline |
◆ write()
| int drizzled::internal::io_cache_st::write |
( |
const void * | Buffer0, |
|
|
size_t | Count ) |
|
inline |
◆ alloced_buffer
| bool drizzled::internal::io_cache_st::alloced_buffer |
◆ append_read_pos
| unsigned char* drizzled::internal::io_cache_st::append_read_pos |
◆ arg
| void* drizzled::internal::io_cache_st::arg |
◆ buffer
| unsigned char* drizzled::internal::io_cache_st::buffer |
◆ buffer_length
| size_t drizzled::internal::io_cache_st::buffer_length |
◆ current_end
| unsigned char ** drizzled::internal::io_cache_st::current_end |
◆ current_pos
| unsigned char** drizzled::internal::io_cache_st::current_pos |
◆ dir
| char* drizzled::internal::io_cache_st::dir |
◆ end_of_file
| my_off_t drizzled::internal::io_cache_st::end_of_file |
◆ error
| int drizzled::internal::io_cache_st::error |
◆ file
| int drizzled::internal::io_cache_st::file |
◆ file_name
| char* drizzled::internal::io_cache_st::file_name |
◆ myflags
| myf drizzled::internal::io_cache_st::myflags |
◆ pos_in_file
| my_off_t drizzled::internal::io_cache_st::pos_in_file |
◆ post_read
| IO_CACHE_CALLBACK drizzled::internal::io_cache_st::post_read |
◆ pre_close
| IO_CACHE_CALLBACK drizzled::internal::io_cache_st::pre_close |
◆ pre_read
| IO_CACHE_CALLBACK drizzled::internal::io_cache_st::pre_read |
◆ prefix
| char * drizzled::internal::io_cache_st::prefix |
◆ read_end
| unsigned char* drizzled::internal::io_cache_st::read_end |
◆ read_function
| int(* drizzled::internal::io_cache_st::read_function) (io_cache_st *,unsigned char *, size_t) |
◆ read_length
| size_t drizzled::internal::io_cache_st::read_length |
◆ read_pos
| unsigned char* drizzled::internal::io_cache_st::read_pos |
◆ request_pos
| unsigned char* drizzled::internal::io_cache_st::request_pos |
◆ seek_not_done
| int drizzled::internal::io_cache_st::seek_not_done |
◆ type
| cache_type drizzled::internal::io_cache_st::type |
◆ write_buffer
| unsigned char* drizzled::internal::io_cache_st::write_buffer |
◆ write_end
| unsigned char* drizzled::internal::io_cache_st::write_end |
◆ write_function
| int(* drizzled::internal::io_cache_st::write_function) (io_cache_st *,const unsigned char *, size_t) |
◆ write_pos
| unsigned char* drizzled::internal::io_cache_st::write_pos |
The documentation for this class was generated from the following files: