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