Navigation Menu

Skip to content

Commit

Permalink
Provide grn_table_max_n_subrecs().
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jun 18, 2013
1 parent 7d05b38 commit 2ea5c20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/groonga.h
Expand Up @@ -2728,6 +2728,8 @@ GRN_API grn_rc grn_table_sort_key_close(grn_ctx *ctx,

GRN_API grn_bool grn_table_is_grouped(grn_ctx *ctx, grn_obj *table);

GRN_API unsigned int grn_table_max_n_subrecs(grn_ctx *ctx, grn_obj *table);

GRN_API grn_obj *grn_table_create_for_group(grn_ctx *ctx,
const char *name,
unsigned int name_size,
Expand Down
9 changes: 9 additions & 0 deletions lib/db.c
Expand Up @@ -8879,6 +8879,15 @@ grn_table_is_grouped(grn_ctx *ctx, grn_obj *table)
return GRN_FALSE;
}

unsigned int
grn_table_max_n_subrecs(grn_ctx *ctx, grn_obj *table)
{
if (GRN_OBJ_TABLEP(table)) {
return DB_OBJ(table)->max_n_subrecs;
}
return 0;
}

/* grn_load */

static grn_obj *
Expand Down

0 comments on commit 2ea5c20

Please sign in to comment.