[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

@ -152,11 +152,11 @@ ObRowkey ObHKVTable::Entity::get_rowkey() const
int64_t ObHKVTable::Entity::hash_rowkey() const
{
int64_t hash_value = 0;
uint64_t hash_value = 0;
ObObj value;
for (int64_t i = 0; i < 3; ++i) {
(void)get_rowkey_value(i, value);
hash_value = value.hash(hash_value);
(void)value.hash(hash_value, hash_value);
}
return hash_value;
}

View File

@ -416,6 +416,7 @@ public:
:entity_(entity)
{}
int64_t hash() const { return entity_->hash_rowkey(); }
int hash(uint64_t &hash_val) const { hash_val = hash(); return OB_SUCCESS; }
bool operator== (const EntityRowkeyAdaptor &other) const
{
bool bret = (entity_->get_rowkey_size() == other.entity_->get_rowkey_size());