Searched refs:item_weight_ (Results 1 – 2 of 2) sorted by relevance
30 item_weight_ = 0; in Reset()36 if (compactor_stack_->random()->UnbiasedUniform(++item_weight_) == 0) { in Add()40 if (item_weight_ >= capacity_) { in Add()47 if (item_weight_ + weight < capacity_) { in AddWithWeight()48 item_weight_ += weight; in AddWithWeight()49 if (compactor_stack_->random()->UnbiasedUniform(item_weight_) < in AddWithWeight()54 int64_t added_weight = capacity_ - item_weight_; in AddWithWeight()59 item_weight_ = capacity_; in AddWithWeight()72 compactor_stack_->AddWithWeight(sampled_item_, item_weight_); in AddSampleToCompactorStackAndRestart()73 item_weight_ = 0; in AddSampleToCompactorStackAndRestart()
57 if (item_weight_ == 0) { in sampled_item_and_weight()60 return std::make_pair(sampled_item_, item_weight_); in sampled_item_and_weight()70 int64_t item_weight_; variable