Skip to content

Commit 2e07f8e

Browse files
committed
define struct to put sorted hash entries
1 parent 41477a2 commit 2e07f8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/grn_hash.h

+9
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,14 @@ struct _grn_hash_header_large {
299299
grn_id garbages[GRN_HASH_MAX_KEY_SIZE_LARGE];
300300
};
301301

302+
struct _grn_hash_cursor_sorted_entires {
303+
grn_id *sorted_entries;
304+
uint32_t n_entries;
305+
uint32_t curr_idx;
306+
};
307+
308+
typedef struct _grn_hash_cursor_sorted_entires grn_hash_cursor_sorted_entires;
309+
302310
struct _grn_hash_cursor {
303311
grn_db_obj obj;
304312
grn_hash *hash;
@@ -307,6 +315,7 @@ struct _grn_hash_cursor {
307315
grn_id tail;
308316
unsigned int rest;
309317
int dir;
318+
grn_hash_cursor_sorted_entires *sorted_entries;
310319
};
311320

312321
/* deprecated */

0 commit comments

Comments
 (0)