[FEAT MERGE] OB Support XMLType
Co-authored-by: simonjoylet <simonjoylet@gmail.com>
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user