[FEAT MERGE] OB Support XMLType

Co-authored-by: simonjoylet <simonjoylet@gmail.com>
This commit is contained in:
obdev
2023-04-28 03:45:10 +00:00
committed by ob-robot
parent 58bb3d34b7
commit 17abf2818a
405 changed files with 18839 additions and 1573 deletions

View File

@ -35,13 +35,13 @@ bool DatumRow::operator==(const DatumRow &other) const
return cmp;
}
uint64_t DatumRow::hash(uint64_t seed) const
int DatumRow::hash(uint64_t &hash_val, uint64_t seed) const
{
uint64_t hash_val = seed;
hash_val = seed;
for (int64_t i = 0; i < cnt_; ++i) {
hash_val = murmurhash(elems_[i].ptr_, elems_[i].len_, hash_val);
}
return hash_val;
return OB_SUCCESS;
}
ObSubQueryIterator::ObSubQueryIterator(ObOperator &op)

View File

@ -28,7 +28,7 @@ public:
DatumRow() : elems_(NULL), cnt_(0) {}
~DatumRow() {}
bool operator==(const DatumRow &other) const;
uint64_t hash(uint64_t seed=0) const;
int hash(uint64_t &hash_val, uint64_t seed=0) const;
TO_STRING_KV(KP(elems_));
ObDatum *elems_;
int64_t cnt_;