Пример #1
0
 int Data::getPartitionHash() const {
     if (hasPartitionHash()) {
         return Bits::readIntB(*data, data->size() - Bits::INT_SIZE_IN_BYTES);
     }
     return hashCode();
 }
Пример #2
0
 int Data::getPartitionHash() const {
     if (hasPartitionHash()) {
         return Bits::readIntB(*data, Data::PARTITION_HASH_OFFSET);
     }
     return hashCode();
 }