Go to the source code of this file.
|
| M0_BOB_DECLARE (M0_INTERNAL, m0_op_idx) |
|
M0_INTERNAL bool | m0__idx_op_invariant (struct m0_op_idx *oi) |
|
M0_INTERNAL void | idx_op_ast_complete (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
M0_INTERNAL void | idx_op_ast_executed (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
M0_INTERNAL void | idx_op_ast_stable (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
M0_INTERNAL void | idx_op_ast_fail (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
M0_INTERNAL int | m0_idx_op_namei (struct m0_entity *entity, struct m0_op **op, enum m0_entity_opcode opcode) |
|
M0_INTERNAL void | m0_idx_service_config (struct m0_client *m0c, int svc_id, void *svc_conf) |
|
M0_INTERNAL void | m0_idx_service_register (int svc_id, struct m0_idx_service_ops *sops, struct m0_idx_query_ops *qops) |
|
M0_INTERNAL void | m0_idx_services_register (void) |
|
M0_INTERNAL void | m0_idx_mock_register (void) |
|
M0_INTERNAL void | m0_idx_dix_register (void) |
|
◆ __MOTR_IDX_H__
Definition at line 26 of file idx.h.
◆ m0_idx_service_type
Types of index services supported by Client.
Enumerator |
---|
M0_IDX_MOCK | Simple service without persistent storage.
|
M0_IDX_DIX | Service based on Motr distributed indexing component. Two types of indices are supported:
- distributed index, which is distributed over multiple storage devices and network nodes in the cluster for performance, scalability and fault tolerance.
- non-distributed index, which is stored on a single node. Client user can't choose the node, the first CAS service from Motr configuration is used.
|
M0_IDX_CASS | Service using Cassandra database as persistent storage.
|
M0_IDX_MAX_SERVICE_ID | |
Definition at line 57 of file idx.h.
◆ m0_op_idx_flags
Values of index operation flags supported by Client index operation.
Enumerator |
---|
M0_OIF_OVERWRITE | For M0_IC_PUT operation, instructs it to silently overwrite existing record with the same key, if any.
|
M0_OIF_EXCLUDE_START_KEY | For M0_IC_NEXT operation, instructs it to skip record with the given start key.
|
M0_OIF_SYNC_WAIT | For M0_IC_PUT/M0_IC_DEL operation, instructs it to delay the reply until data is persisted.
|
M0_OIF_SKIP_LAYOUT | For M0_EO_CREATE/M0_EO_DELETE operations, instructs to skip update of meta indices during index operations.
|
M0_OIF_CROW | For M0_EO_CREATE/M0_EO_DELETE operations, instructs to create btree on write during PUT operation.
|
Definition at line 77 of file idx.h.
◆ idx_op_ast_complete()
AST callback to complete a whole index operation.
- Parameters
-
grp | group the AST is executed in. |
ast | callback being executed. |
Definition at line 311 of file idx.c.
◆ idx_op_ast_executed()
◆ idx_op_ast_fail()
AST callback to fail a whole index operation.
- Parameters
-
grp | group the AST is executed in. |
ast | callback being executed. |
Definition at line 367 of file idx.c.
◆ idx_op_ast_stable()
◆ m0__idx_op_invariant()
M0_INTERNAL bool m0__idx_op_invariant |
( |
struct m0_op_idx * |
oi | ) |
|
Checks an index operation is not malformed or corrupted.
- Parameters
-
oi | index operation to be checked. |
- Returns
- true if the operation is not malformed or false if some error was detected.
Definition at line 74 of file idx.c.
◆ M0_BOB_DECLARE()
◆ m0_idx_mock_register()
M0_INTERNAL void m0_idx_mock_register |
( |
void |
| ) |
|
◆ m0_idx_op_namei()
Sets an entity operation to create or delete an index.
- Parameters
-
entity | entity to be modified. |
op | pointer to the operation being set. |
opcode | M0_EO_CREATE or M0_EO_DELETE. |
- Returns
- 0 if the function succeeds or an error code otherwise.
Definition at line 603 of file idx.c.
◆ m0_idx_service_config()
M0_INTERNAL void m0_idx_service_config |
( |
struct m0_client * |
m0c, |
|
|
int |
svc_id, |
|
|
void * |
svc_conf |
|
) |
| |
◆ m0_idx_service_register()
◆ m0_idx_services_register()
M0_INTERNAL void m0_idx_services_register |
( |
void |
| ) |
|
◆ oi_bobtype
Definition at line 44 of file idx.c.