Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::data_model::{
AggregateCore, AggregationType, KeyByLabelValues, MergeableAccumulator,
MultipleSubpopulationAggregate, SerializableToSink,
};
use asap_sketchlib::sketches::countmin::CountMinSketch;
use asap_sketchlib::sketches::countminsketch::CountMinSketch;
use serde_json::Value;
use std::collections::HashMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ use crate::data_model::{
AggregateCore, AggregationType, KeyByLabelValues, MergeableAccumulator,
MultipleSubpopulationAggregate, SerializableToSink,
};
use asap_sketchlib::sketches::cms_heap::{CmsHeapItem, CountMinSketchWithHeap};
use asap_sketchlib::sketches::countminsketch_topk::{CmsHeapItem, CountMinSketchWithHeap};
use serde_json::Value;
use std::collections::HashMap;

use promql_utilities::query_logics::enums::Statistic;

/// Count-Min Sketch with Heap accumulator — wraps `asap_sketchlib::sketches::CountMinSketchWithHeap`.
/// Core struct, update/merge/serde logic live in `asap_sketchlib::sketches::cms_heap`.
/// Core struct, update/merge/serde logic live in `asap_sketchlib::sketches::countminsketch_topk`.
/// This file retains QE-specific trait impls, legacy deserializers, and JSON output.
#[derive(Debug, Clone)]
pub struct CountMinSketchWithHeapAccumulator {
pub inner: CountMinSketchWithHeap,
}

// Re-export HeapItem so existing code using CountMinSketchWithHeapAccumulator::HeapItem still works.
pub use asap_sketchlib::sketches::cms_heap::CmsHeapItem as HeapItemReexport;
pub use asap_sketchlib::sketches::countminsketch_topk::CmsHeapItem as HeapItemReexport;

impl CountMinSketchWithHeapAccumulator {
pub fn new(row_num: usize, col_num: usize, heap_size: usize) -> Self {
Expand Down
Loading