Description:
oday the NdbScanFilter api provides a set of methods to address Mysql predefined attribute types such as BINARY,CHAR .
The proposal is to extend this api to be able to compare only on a subset of bytes of these attribute by introducing an offset parameter in the cmp methods.
The actual comparison method is defined as follow :
int NdbScanFilter::cmp(BinaryCondition cond,
int ColId,
const void* val,
Uint32 len = 0)
This method compare the column ColId with the value val.
and could become :
int NdbScanFilter::cmp(BinaryCondition cond,
int ColId,
const void* val,
Uint32 len = 0,
Uint32 Offset=0)
This method compare the column ColId with the value val starting at Offset byte from the beginning.
According to this evolution, we could easily apply Mysql filter on application specific attributes as Set and Array.
How to repeat:
.