Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
7bc8f1bd
Commit
7bc8f1bd
authored
13 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
tree-index-opt: add comments.
parent
75174edc
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mod/box/box.h
+16
-4
16 additions, 4 deletions
mod/box/box.h
mod/box/index.h
+1
-1
1 addition, 1 deletion
mod/box/index.h
with
17 additions
and
5 deletions
mod/box/box.h
+
16
−
4
View file @
7bc8f1bd
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
mod/box/index.h
+
1
−
1
View file @
7bc8f1bd
...
...
@@ -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; \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment