[Groonga-commit] groonga/groonga at 416234f [master] Provide grn_table_is_grouped()

Back to archive index

Daijiro MORI null+****@clear*****
Tue Jun 18 13:19:25 JST 2013


Daijiro MORI	2013-06-18 13:19:25 +0900 (Tue, 18 Jun 2013)

  New Revision: 416234f86201d333c32abb02428f0bc35fa0090d
  https://github.com/groonga/groonga/commit/416234f86201d333c32abb02428f0bc35fa0090d

  Message:
    Provide grn_table_is_grouped()

  Modified files:
    include/groonga.h
    lib/db.c

  Modified: include/groonga.h (+3 -0)
===================================================================
--- include/groonga.h    2013-06-18 12:42:00 +0900 (0f32950)
+++ include/groonga.h    2013-06-18 13:19:25 +0900 (bd0f93a)
@@ -2726,6 +2726,9 @@ GRN_API grn_table_sort_key *grn_table_sort_key_from_str(grn_ctx *ctx,
 GRN_API grn_rc grn_table_sort_key_close(grn_ctx *ctx,
                                         grn_table_sort_key *keys, unsigned int nkeys);
 
+GRN_API grn_bool grn_table_is_grouped(grn_obj *table);
+
+
 GRN_API grn_rc grn_load(grn_ctx *ctx, grn_content_type input_type,
                         const char *table, unsigned int table_len,
                         const char *columns, unsigned int columns_len,

  Modified: lib/db.c (+9 -0)
===================================================================
--- lib/db.c    2013-06-18 12:42:00 +0900 (dadec55)
+++ lib/db.c    2013-06-18 13:19:25 +0900 (8dd8a8f)
@@ -8870,6 +8870,15 @@ grn_table_sort_key_close(grn_ctx *ctx, grn_table_sort_key *keys, unsigned int nk
   return ctx->rc;
 }
 
+grn_bool
+grn_table_is_grouped(grn_obj *table)
+{
+  if (GRN_OBJ_TABLEP(table) && GRN_TABLE_IS_GROUPED(table)) {
+    return GRN_TRUE;
+  }
+  return GRN_FALSE;
+}
+
 /* grn_load */
 
 static grn_obj *
-------------- next part --------------
HTML����������������������������...
Download 



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