[Groonga-commit] groonga/groonga at bc898b3 [master] pat: export the current total key size to Groonga internal

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Feb 3 17:42:48 JST 2016


Kouhei Sutou	2016-02-03 17:42:48 +0900 (Wed, 03 Feb 2016)

  New Revision: bc898b3ad297178695ab3aa006cd901f3aad09d0
  https://github.com/groonga/groonga/commit/bc898b3ad297178695ab3aa006cd901f3aad09d0

  Message:
    pat: export the current total key size to Groonga internal

  Modified files:
    lib/grn_pat.h
    lib/pat.c

  Modified: lib/grn_pat.h (+1 -0)
===================================================================
--- lib/grn_pat.h    2016-02-03 17:42:20 +0900 (014a1f6)
+++ lib/grn_pat.h    2016-02-03 17:42:48 +0900 (37f6aa4)
@@ -112,6 +112,7 @@ GRN_API grn_rc grn_pat_fuzzy_search(grn_ctx *ctx, grn_pat *pat,
                                     const void *key, unsigned int key_size,
                                     unsigned int prefix_match_size,
                                     unsigned int max_distance, int flags, grn_hash *h);
+uint32_t grn_pat_total_key_size(grn_ctx *ctx, grn_pat *pat);
 
 #ifdef __cplusplus
 }

  Modified: lib/pat.c (+6 -0)
===================================================================
--- lib/pat.c    2016-02-03 17:42:20 +0900 (c1eced3)
+++ lib/pat.c    2016-02-03 17:42:48 +0900 (88057be)
@@ -3437,3 +3437,9 @@ set_cursor_rk(grn_ctx *ctx, grn_pat *pat, grn_pat_cursor *c,
   }
   return ctx->rc;
 }
+
+uint32_t
+grn_pat_total_key_size(grn_ctx *ctx, grn_pat *pat)
+{
+  return pat->header->curr_key;
+}
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index