|
bool | add_document (int d, int r, double pos) |
|
int | flush_results (double scaling_param, double gamma, double costcut_threshold, int max_reuse_batches, result_storage &stored) |
|
| impl_ (int window_batch_size, double batch_interval, int max_stored) |
|
| MSGPACK_DEFINE (inputs_, window_batch_size_, batch_interval_, max_stored_) |
|
Definition at line 31 of file aggregator.cpp.
jubatus::core::burst::aggregator::impl_::impl_ |
( |
int |
window_batch_size, |
|
|
double |
batch_interval, |
|
|
int |
max_stored |
|
) |
| |
|
inline |
bool jubatus::core::burst::aggregator::impl_::add_document |
( |
int |
d, |
|
|
int |
r, |
|
|
double |
pos |
|
) |
| |
|
inline |
Definition at line 39 of file aggregator.cpp.
References batch_interval_, inputs_, make_new_window_(), and max_stored_.
40 typedef std::deque<input_window>::iterator iterator_t;
45 }
else if (
inputs_.front().get_end_pos() <= pos) {
47 inputs_.push_front(input_window());
48 inputs_.front().swap(new_window);
56 iter != end; ++iter) {
57 if (iter->add_document(d, r, pos)) {
std::deque< input_window > inputs_
input_window make_new_window_(double pos, const input_window &prev) const
int jubatus::core::burst::aggregator::impl_::flush_results |
( |
double |
scaling_param, |
|
|
double |
gamma, |
|
|
double |
costcut_threshold, |
|
|
int |
max_reuse_batches, |
|
|
result_storage & |
stored |
|
) |
| |
|
inline |
Definition at line 66 of file aggregator.cpp.
References batch_interval_, jubatus::core::burst::get_intersection(), jubatus::core::burst::result_storage::get_result_at(), inputs_, JUBATUS_ASSERT_GT, jubatus::core::burst::result_storage::store(), and jubatus::core::burst::burst_result::swap().
75 burst_result prev = stored.get_result_at(
78 typedef std::deque<input_window>::reverse_iterator iterator_t;
81 iter != end; ++iter) {
82 burst_result r(*iter, scaling_param, gamma, costcut_threshold,
83 prev, max_reuse_batches);
93 std::pair<int, int> intersection =
95 if (intersection.first != intersection.second) {
std::deque< input_window > inputs_
#define JUBATUS_ASSERT_GT(a, b, messages)
std::pair< int, int > get_intersection(const W1 &w1, const W2 &w2)
double jubatus::core::burst::aggregator::impl_::batch_interval_ |
|
private |
std::deque<input_window> jubatus::core::burst::aggregator::impl_::inputs_ |
|
private |
int jubatus::core::burst::aggregator::impl_::max_stored_ |
|
private |
int jubatus::core::burst::aggregator::impl_::window_batch_size_ |
|
private |
The documentation for this class was generated from the following file: