Groonga
Loading...
Searching...
No Matches
progress.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2022 Sutou Kouhei <kou@clear-code.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#pragma once
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29
40
41typedef struct _grn_progress grn_progress;
42
45 grn_progress *progress);
48 grn_progress *progress);
49GRN_API uint32_t
51 grn_progress *progress);
52GRN_API uint32_t
54 grn_progress *progress);
55GRN_API uint32_t
57 grn_progress *progress);
58GRN_API uint32_t
60 grn_progress *progress);
61
62GRN_API uint32_t
64 grn_progress *progress);
65
67 grn_progress *progress,
68 void *user_data);
69
73 void *user_data);
76
77#ifdef __cplusplus
78}
79#endif
grn_rc
Definition groonga.h:61
#define GRN_API
Definition groonga.h:39
GRN_API uint32_t grn_progress_index_get_n_target_terms(grn_ctx *ctx, grn_progress *progress)
GRN_API grn_rc grn_ctx_set_progress_callback(grn_ctx *ctx, grn_progress_callback_func func, void *user_data)
GRN_API uint32_t grn_progress_index_get_n_processed_terms(grn_ctx *ctx, grn_progress *progress)
grn_progress_index_phase
Definition progress.h:30
@ GRN_PROGRESS_INDEX_VECTORIZE
Definition progress.h:37
@ GRN_PROGRESS_INDEX_FINALIZE
Definition progress.h:35
@ GRN_PROGRESS_INDEX_CLUSTER
Definition progress.h:38
@ GRN_PROGRESS_INDEX_DONE
Definition progress.h:36
@ GRN_PROGRESS_INDEX_INVALID
Definition progress.h:31
@ GRN_PROGRESS_INDEX_COMMIT
Definition progress.h:34
@ GRN_PROGRESS_INDEX_INITIALIZE
Definition progress.h:32
@ GRN_PROGRESS_INDEX_LOAD
Definition progress.h:33
GRN_API grn_progress_type grn_progress_get_type(grn_ctx *ctx, grn_progress *progress)
GRN_API uint32_t grn_progress_index_get_n_processed_records(grn_ctx *ctx, grn_progress *progress)
GRN_API uint32_t grn_progress_index_get_n_target_records(grn_ctx *ctx, grn_progress *progress)
GRN_API grn_progress_index_phase grn_progress_index_get_phase(grn_ctx *ctx, grn_progress *progress)
grn_progress_type
Definition progress.h:25
@ GRN_PROGRESS_INDEX
Definition progress.h:26
@ GRN_PROGRESS_LANGUAGE_MODEL_INFERENCER
Definition progress.h:27
void(* grn_progress_callback_func)(grn_ctx *ctx, grn_progress *progress, void *user_data)
Definition progress.h:66
GRN_API grn_progress_callback_func grn_ctx_get_progress_callback(grn_ctx *ctx)
GRN_API uint32_t grn_progress_language_model_inferencer_get_n_processed_records(grn_ctx *ctx, grn_progress *progress)
struct _grn_progress grn_progress
Definition progress.h:41
Definition groonga.h:351