Searched refs:sampler_ (Results 1 – 2 of 2) sorted by relevance
51 sampler_ = nullptr; in Reset()56 if (sampler_ == nullptr) { in Add()61 sampler_->Add(value); in Add()71 if (sampler_ != nullptr) { in AddWithWeight()72 sampler_->AddWithWeight(value, remaining_weight % sampler_->capacity()); in AddWithWeight()73 remaining_weight /= sampler_->capacity(); in AddWithWeight()74 level_to_add = sampler_->num_replaced_levels(); in AddWithWeight()172 if (sampler_ != nullptr) { in DoubleSamplerCapacity()173 sampler_->DoubleCapacity(); in DoubleSamplerCapacity()175 sampler_ = std::make_unique<KllSampler>(this); in DoubleSamplerCapacity()[all …]
75 return sampler_ != nullptr; in IsSamplerOn()116 std::unique_ptr<KllSampler> sampler_; variable