Skip to content
Snippets Groups Projects
Commit 7bc8f1bd authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

tree-index-opt: add comments.

parent 75174edc
No related branches found
No related tags found
No related merge requests found
......@@ -42,14 +42,26 @@ enum
};
struct space {
Index *index[BOX_INDEX_MAX];
int n;
bool enabled;
int cardinality;
Index *index[BOX_INDEX_MAX];
/* inferred data */
/**
* Inferred data: max field no which participates in an
* index. Each tuple in this space must have, therefore, at
* least indexed_field_count fields.
*/
int field_count;
int *field_types;
/**
* Field types of indexed fields. This is an array of size
* indexed_field_count. If there are gaps, i.e. fields
* which do not participate in an index and for which we
* thus can't infer field type, respective array member
* has value UNKNOWN. XXX: right now UNKNOWN is also
* set for fields which types in two indexes contradict.
*/
enum field_data_type *field_types;
bool enabled;
};
extern struct space *space;
......
......@@ -131,7 +131,7 @@ struct iterator {
void (*free)(struct iterator *);
};
struct box_tuple * iterator_first_equal(struct iterator *it);
struct box_tuple *iterator_first_equal(struct iterator *it);
#define foreach_index(n, index_var) \
Index *index_var; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment