InnoDB Plugin  1.0
Functions
rem0cmp.ic File Reference
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE int cmp_data_data (ulint mtype, ulint prtype, const byte *data1, ulint len1, const byte *data2, ulint len2)
UNIV_INLINE int cmp_data_data_like_prefix (byte *data1, ulint len1, byte *data2, ulint len2)
UNIV_INLINE int cmp_data_data_like_suffix (byte *data1, ulint len1, byte *data2, ulint len2)
UNIV_INLINE int cmp_data_data_like_substr (byte *data1, ulint len1, byte *data2, ulint len2)
UNIV_INLINE int cmp_dfield_dfield (const dfield_t *dfield1, const dfield_t *dfield2)
UNIV_INLINE int cmp_dfield_dfield_like_suffix (dfield_t *dfield1, dfield_t *dfield2)
UNIV_INLINE int cmp_dfield_dfield_like_substr (dfield_t *dfield1, dfield_t *dfield2)
UNIV_INLINE int cmp_rec_rec (const rec_t *rec1, const rec_t *rec2, const ulint *offsets1, const ulint *offsets2, dict_index_t *index)

Detailed Description

Comparison services for records

Created 7/1/1994 Heikki Tuuri

Function Documentation

UNIV_INLINE int cmp_data_data ( ulint  mtype,
ulint  prtype,
const byte *  data1,
ulint  len1,
const byte *  data2,
ulint  len2 
)

This function is used to compare two data fields for which we know the data type.

Returns
1, 0, -1, if data1 is greater, equal, less than data2, respectively
Parameters
mtypein: main type
prtypein: precise type
data1in: data field (== a pointer to a memory buffer)
len1in: data field length or UNIV_SQL_NULL
data2in: data field (== a pointer to a memory buffer)
len2in: data field length or UNIV_SQL_NULL
UNIV_INLINE int cmp_dfield_dfield ( const dfield_t dfield1,
const dfield_t dfield2 
)

This function is used to compare two dfields where at least the first has its data type field set.

Returns
1, 0, -1, if dfield1 is greater, equal, less than dfield2, respectively
Parameters
dfield1in: data field; must have type field set
dfield2in: data field
UNIV_INLINE int cmp_rec_rec ( const rec_t *  rec1,
const rec_t *  rec2,
const ulint *  offsets1,
const ulint *  offsets2,
dict_index_t index 
)

This function is used to compare two physical records. Only the common first fields are compared.

Returns
1, 0 , -1 if rec1 is greater, equal, less, respectively, than rec2; only the common first fields are compared
Parameters
rec1in: physical record
rec2in: physical record
offsets1in: rec_get_offsets(rec1, index)
offsets2in: rec_get_offsets(rec2, index)
indexin: data dictionary index