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
63c8f42a
Commit
63c8f42a
authored
13 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
Add comments to index.h
parent
7bdd720f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mod/box/index.h
+15
-3
15 additions, 3 deletions
mod/box/index.h
with
15 additions
and
3 deletions
mod/box/index.h
+
15
−
3
View file @
63c8f42a
...
...
@@ -79,10 +79,10 @@ struct index {
bool
unique
;
size_t
(
*
size
)(
struct
index
*
index
);
struct
box_tuple
*
(
*
find
)
(
struct
index
*
index
,
void
*
key
);
/* only for unique lookups */
struct
box_tuple
*
(
*
find
)
(
struct
index
*
index
,
void
*
key
);
/* only for unique lookups */
struct
box_tuple
*
(
*
find_by_tuple
)
(
struct
index
*
index
,
struct
box_tuple
*
pattern
);
void
(
*
remove
)
(
struct
index
*
index
,
struct
box_tuple
*
);
void
(
*
replace
)
(
struct
index
*
index
,
struct
box_tuple
*
,
struct
box_tuple
*
);
void
(
*
remove
)
(
struct
index
*
index
,
struct
box_tuple
*
);
void
(
*
replace
)
(
struct
index
*
index
,
struct
box_tuple
*
,
struct
box_tuple
*
);
void
(
*
iterator_init
)
(
struct
index
*
,
int
cardinality
,
void
*
key
);
struct
box_tuple
*
(
*
iterator_next
)
(
struct
index
*
);
struct
box_tuple
*
(
*
iterator_next_nocompare
)
(
struct
index
*
);
...
...
@@ -102,12 +102,24 @@ struct index {
struct
space
*
space
;
/* Description of parts of a multipart index. */
struct
{
u32
fieldno
;
enum
field_data_type
type
;
}
*
key_field
;
/*
* An array holding field positions in key_field array.
* Imagine there is index[1] = { key_field[0].fieldno=5,
* key_field[1].fieldno=3 }.
* key_field array will contain data from key_field[0] and
* key_field[1] respectively. field_cmp_order_cnt will be 5,
* and field_cmp_order array will hold offsets of
* field 3 and 5 in key_field array: -1, -1, 0, -1, 1.
*/
u32
*
field_cmp_order
;
/* max fieldno in key_field array + 1 */
u32
field_cmp_order_cnt
;
/* Size of key_field array */
u32
key_cardinality
;
/* relative offset of the index in the namespace */
u32
n
;
...
...
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