| 108 | |
| 109 | template <size_t BATCH_SIZE> |
| 110 | int FlatBuilder<BATCH_SIZE>::build(IndexThreads::Pointer, |
| 111 | IndexHolder::Pointer holder) { |
| 112 | ailego::ElapsedTime stamp; |
| 113 | if (!holder->is_matched(meta_)) { |
| 114 | LOG_ERROR("The holder is unmatched with initialized meta."); |
| 115 | return IndexError_Mismatch; |
| 116 | } |
| 117 | |
| 118 | holder_ = std::move(holder); |
| 119 | stats_.set_built_count(holder_->count()); |
| 120 | stats_.set_built_costtime(stamp.milli_seconds()); |
| 121 | return 0; |
| 122 | } |
| 123 | |
| 124 | template <size_t BATCH_SIZE> |
| 125 | int FlatBuilder<BATCH_SIZE>::dump(const IndexDumper::Pointer &dumper) { |
nothing calls this directly
no test coverage detected