Пример #1
0
void compressive_storage::pack(framework::packer& packer) const {
  packer.pack_array(4);
  packer.pack(static_cast<const storage&>(*this));
  packer.pack(mine_);
  packer.pack(status_);
  packer.pack(*compressor_);
}
Пример #2
0
void burst_result::msgpack_pack(framework::packer& packer) const {
  if (!p_) {
    result_window r(invalid_pos);
    packer.pack(r);
  } else {
    packer.pack(*p_);
  }
}
Пример #3
0
 void get_row(const uint64_t id, framework::packer& pk) const {
   jubatus::util::concurrent::scoped_rlock lk(table_lock_);
   if (tuples_ <= id) {
     // TODO(kumagi): Should we return nil object?
     // or raise assertion?
     return;
   }
   pk.pack_array(3);  // [key, [owner, id], [data]]
   pk.pack(keys_[id]);  // key
   pk.pack(versions_[id]);  // [version]
   pk.pack_array(columns_.size());
   for (size_t i = 0; i < columns_.size(); ++i) {
     columns_[i].pack_with_index(id, pk);
   }
 }
void inverted_index_classifier::pack(framework::packer& pk) const {
  pk.pack_array(2);
  {
    util::concurrent::scoped_rlock lk(storage_mutex_);
    mixable_storage_->get_model()->pack(pk);
  }
  labels_.get_model()->pack(pk);
}
void nearest_neighbor_recommender::pack(framework::packer& packer) const {
  packer.pack_array(2);
  orig_.pack(packer);
  nearest_neighbor_engine_->pack(packer);
}
Пример #6
0
 void pack(framework::packer& pk) const {
   util::concurrent::scoped_lock lk(mutex_);
   pk.pack(*this);
 }
Пример #7
0
void local_storage::pack(framework::packer& packer) const {
  packer.pack(*this);
}
Пример #8
0
void inverted_index_storage::pack(framework::packer& packer) const {
  packer.pack(*this);
}
Пример #9
0
 void pack(framework::packer& packer) const {
   packer.pack(*this);
 }
Пример #10
0
void clustering::pack(framework::packer& pk) const {
  pk.pack_array(2);
  clustering_->pack(pk);
  wm_.get_model()->pack(pk);
}
Пример #11
0
void sparse_matrix_storage::pack(framework::packer& packer)
    const {
  packer.pack(*this);
}
Пример #12
0
void regression::pack(framework::packer& pk) const {
  pk.pack_array(2);
  regression_->pack(pk);
  wm_.get_model()->pack(pk);
}
Пример #13
0
void recommender::pack(framework::packer& pk) const {
  pk.pack_array(2);
  recommender_->pack(pk);
  wm_.get_model()->pack(pk);
}
Пример #14
0
void aggregator::pack(framework::packer& packer) const {
  JUBATUS_ASSERT(p_);
  packer.pack(*p_);
}
Пример #15
0
void linear_classifier::pack(framework::packer& pk) const {
  pk.pack_array(2);
  storage_->pack(pk);
  labels_.get_model()->pack(pk);
}
Пример #16
0
void lof::pack(framework::packer& packer) const {
  packer.pack_array(2);
  mixable_storage_->get_model()->pack(packer);
  nn_engine_->pack(packer);
}
Пример #17
0
void bit_index_storage::pack(framework::packer& packer) const {
  packer.pack(*this);
}
Пример #18
0
void anomaly::pack(framework::packer& pk) const {
  pk.pack_array(2);
  anomaly_->pack(pk);
  wm_.get_model()->pack(pk);
}
Пример #19
0
void lsh::pack(framework::packer& packer) const {
  packer.pack_array(2);
  orig_.pack(packer);
  mixable_storage_->get_model()->pack(packer);
}
Пример #20
0
void simple_storage::pack(framework::packer& packer) const {
  packer.pack_array(2);
  packer.pack(static_cast<const storage&>(*this));
  packer.pack(mine_);
}
Пример #21
0
void local_storage::pack(framework::packer& packer) const {
  scoped_rlock lk(mutex_);
  packer.pack(*this);
}
Пример #22
0
void ucb1::pack(framework::packer& pk) const {
  pk.pack(s_);
}