BDB-JE: Byte array key comparisons. -
01-22-2006
, 10:12 PM
Hi,
I'm using BDB-JE 2.083. I have a DB that uses a byte-array as the
key... I'm trying to merge the results from two queries -- i'm
basically just iterating through the two result sets (which are ordered
by byte-array key) and merging. However, this only works if my
comparison function for byte-arrays behaves exactly like the one used
by BDB internally.
Can you point me to the location in the source code where the byte
comparisons are implemented for Btree keys? The docs mentioned that
the database keys are "lexographically" ordered -- does that mean
unsigned byte comparisons?
Thanks,
~Heng |