File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,18 @@ class ResizeableSketchColumn {
109109 }
110110
111111 void serialize (std::ostream &binary_out) const ;
112+
113+ friend std::ostream& operator <<(std::ostream &os, const ResizeableSketchColumn&sketch) {
114+ os << " ResizeableSketchColumn: " << std::endl;
115+ os << " Capacity: " << (int )sketch.capacity << std::endl;
116+ os << " Column Index: " << (int )sketch.col_idx << std::endl;
117+ os << " Deterministic Bucket: " << sketch.deterministic_bucket << std::endl;
118+ for (size_t i = 0 ; i < sketch.capacity ; ++i) {
119+ os << " Bucket[" << i << " ]: " << sketch.aligned_buckets [i] << std::endl;
120+ }
121+ return os;
122+ }
123+
112124 bool operator ==(const ResizeableSketchColumn &other) const {
113125 for (size_t i = 0 ; i < capacity; ++i) {
114126 if (aligned_buckets[i] != other.aligned_buckets [i]) {
You can’t perform that action at this time.
0 commit comments