groonga - An open-source fulltext search engine and column store.

8.14.1. grn_ctx

8.14.1.1. Summary

grn_ctx is the most important object. grn_ctx keeps the current infomation such as:

grn_ctx provides platform features such as:

  • Memory management.
  • Logging.

Most APIs receive grn_ctx as the first argument.

You can't use the same grn_ctx from two or more threads. You need to create a grn_ctx for a thread. You can use two or more grn_ctx in a thread but it is not needed for usual use-case.

8.14.1.2. Example

TODO...

8.14.1.3. Reference

grn_ctx

TODO...

grn_rc grn_ctx_init(grn_ctx *ctx, int flags)

ctxを初期化します。

Parameters:
  • ctx -- 初期化するctx構造体へのポインタを指定します。
  • flags -- 初期化する ctx のオプションを指定します。
Returns:

GRN_SUCCESS on success, not GRN_SUCCESS on error.

Table Of Contents

Previous topic

8.14. API

Next topic

8.14.2. grn_expr

This Page