reifydb_core/state/join.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4use reifydb_codec::row::bytes::EncodedBytes;
5use reifydb_value::util::hash::xxh3_64;
6
7#[repr(transparent)]
8#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
9pub struct ContentVersion(pub u64);
10
11impl ContentVersion {
12 pub fn of(encoded: &EncodedBytes) -> Self {
13 Self(xxh3_64(&encoded.0).0)
14 }
15}