Skip to content

Commit a967e23

Browse files
authored
chore: Export APIs necessary for future work in Pro (#26424)
1 parent 4822886 commit a967e23

File tree

1 file changed

+5
-5
lines changed
  • influxdb3_cache/src/distinct_cache

1 file changed

+5
-5
lines changed

influxdb3_cache/src/distinct_cache/cache.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ pub(crate) struct DistinctCache {
4747
/// The fixed Arrow schema used to produce record batches from the cache
4848
schema: SchemaRef,
4949
/// Holds current state of the cache
50-
state: DistinctCacheState,
50+
pub(crate) state: DistinctCacheState,
5151
/// The identifiers of the columns used in the cache
5252
column_ids: Vec<ColumnId>,
5353
/// The cache data, stored in a tree
54-
data: Node,
54+
pub(crate) data: Node,
5555
}
5656

5757
/// Type for tracking the current state of a [`DistinctCache`]
5858
#[derive(Debug, Default)]
59-
struct DistinctCacheState {
59+
pub(crate) struct DistinctCacheState {
6060
/// The current number of unique value combinations in the cache
61-
cardinality: usize,
61+
pub(crate) cardinality: usize,
6262
}
6363

6464
/// Arguments to create a new [`DistinctCache`]
@@ -294,7 +294,7 @@ impl DistinctCache {
294294
/// whose values hold the last seen time as an [`i64`] of each value, and an optional reference to
295295
/// the node in the next level of the tree.
296296
#[derive(Debug, Default)]
297-
struct Node(BTreeMap<Value, (i64, Option<Node>)>);
297+
pub(crate) struct Node(pub(crate) BTreeMap<Value, (i64, Option<Node>)>);
298298

299299
impl Node {
300300
/// Remove all elements before the given nanosecond timestamp returning `true` if the resulting

0 commit comments

Comments
 (0)