InnoDB Plugin
1.0
|
#include "univ.i"
#include "row0types.h"
#include "data0types.h"
#include "mem0mem.h"
#include "dict0types.h"
#include "row0ext.ic"
Go to the source code of this file.
Data Structures | |
struct | row_ext_t |
Functions | |
UNIV_INTERN row_ext_t * | row_ext_create (ulint n_ext, const ulint *ext, ulint flags, const dtuple_t *tuple, mem_heap_t *heap) |
UNIV_INLINE const byte * | row_ext_lookup_ith (const row_ext_t *ext, ulint i, ulint *len) |
UNIV_INLINE const byte * | row_ext_lookup (const row_ext_t *ext, ulint col, ulint *len) |
Caching of externally stored column prefixes
Created September 2006 Marko Makela
UNIV_INTERN row_ext_t* row_ext_create | ( | ulint | n_ext, |
const ulint * | ext, | ||
ulint | flags, | ||
const dtuple_t * | tuple, | ||
mem_heap_t * | heap | ||
) |
Creates a cache of column prefixes of externally stored columns.
n_ext | in: number of externally stored columns |
ext | in: col_no's of externally stored columns in the InnoDB table object, as reported by dict_col_get_no(); NOT relative to the records in the clustered index |
flags | in: table->flags |
tuple | in: data tuple containing the field references of the externally stored columns; must be indexed by col_no; the clustered index record must be covered by a lock or a page latch to prevent deletion (rollback or purge). |
UNIV_INLINE const byte* row_ext_lookup | ( | const row_ext_t * | ext, |
ulint | col, | ||
ulint * | len | ||
) |
Looks up a column prefix of an externally stored column.
Looks up a column prefix of an externally stored column.
ext | in: column prefix cache |
col | in: column number in the InnoDB table object, as reported by dict_col_get_no(); NOT relative to the records in the clustered index |
len | out: length of prefix, in bytes, at most ext->max_len |
UNIV_INLINE const byte* row_ext_lookup_ith | ( | const row_ext_t * | ext, |
ulint | i, | ||
ulint * | len | ||
) |
Looks up a column prefix of an externally stored column.
Looks up a column prefix of an externally stored column.
ext | in/out: column prefix cache |
i | in: index of ext->ext[] |
len | out: length of prefix, in bytes, at most ext->max_len |