Files
documentdb/pg_documentdb/include/opclass/helio_gin_common.h
T
Vinod Sridharan 3f9a507562 Merged PR 1539950: [OSS] Move helio_api and helio_distributed sources under documentdb
### Does this PR have any customer impact?
No

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Refactor

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Are you introducing any new config? If yes, do you have tests with and without them being set?
No
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Move source files under new directory.

----
#### AI description  (iteration 1)
#### PR Classification
Code reorganization

#### PR Summary
This pull request moves the `helio_api` and `helio_distributed` sources under the `documentdb` directory, updating references and initialization logic accordingly.
- Added `pg_documentdb.c` for initializing the `pg_documentdb` extension.
- Added `documentdb_distributed.c` for initializing the `pg_documentdb_distributed` extension.
- Updated `validate_helio_extension_state.sh` to include new checks for `documentdb`.
- Moved `helio_api_extension_version.c` to `documentdb_extension_version.c` without code changes.
- Updated various `Makefile` configurations to reflect the new directory structure and dependencies.
2025-01-15 07:48:39 +00:00

55 lines
1.8 KiB
C

/*-------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* include/opclass/helio_gin_common.h
*
* Common declarations of the bson gin methods.
*
*-------------------------------------------------------------------------
*/
#ifndef HELIO_GIN_COMMON_H
#define HELIO_GIN_COMMON_H
/*
* Maps the set of operators for the gin index as strategies that are used in
* gin operator functions.
*/
typedef enum BsonIndexStrategy
{
BSON_INDEX_STRATEGY_INVALID = 0,
BSON_INDEX_STRATEGY_DOLLAR_EQUAL = 1,
BSON_INDEX_STRATEGY_DOLLAR_GREATER = 2,
BSON_INDEX_STRATEGY_DOLLAR_GREATER_EQUAL = 3,
BSON_INDEX_STRATEGY_DOLLAR_LESS = 4,
BSON_INDEX_STRATEGY_DOLLAR_LESS_EQUAL = 5,
BSON_INDEX_STRATEGY_DOLLAR_IN = 6,
BSON_INDEX_STRATEGY_DOLLAR_NOT_EQUAL = 7,
BSON_INDEX_STRATEGY_DOLLAR_NOT_IN = 8,
BSON_INDEX_STRATEGY_DOLLAR_REGEX = 9,
BSON_INDEX_STRATEGY_DOLLAR_EXISTS = 10,
BSON_INDEX_STRATEGY_DOLLAR_SIZE = 11,
BSON_INDEX_STRATEGY_DOLLAR_TYPE = 12,
BSON_INDEX_STRATEGY_DOLLAR_ALL = 13,
BSON_INDEX_STRATEGY_UNIQUE_EQUAL = 14,
BSON_INDEX_STRATEGY_DOLLAR_BITS_ALL_CLEAR = 15,
BSON_INDEX_STRATEGY_DOLLAR_BITS_ANY_CLEAR = 16,
BSON_INDEX_STRATEGY_DOLLAR_ELEMMATCH = 17,
BSON_INDEX_STRATEGY_DOLLAR_BITS_ALL_SET = 18,
BSON_INDEX_STRATEGY_DOLLAR_BITS_ANY_SET = 19,
BSON_INDEX_STRATEGY_DOLLAR_MOD = 20,
BSON_INDEX_STRATEGY_DOLLAR_ORDERBY = 21,
BSON_INDEX_STRATEGY_DOLLAR_TEXT = 22,
BSON_INDEX_STRATEGY_DOLLAR_GEOWITHIN = 23,
BSON_INDEX_STRATEGY_DOLLAR_GEOINTERSECTS = 24,
BSON_INDEX_STRATEGY_DOLLAR_RANGE = 25,
BSON_INDEX_STRATEGY_DOLLAR_NOT_GT = 26,
BSON_INDEX_STRATEGY_DOLLAR_NOT_GTE = 27,
BSON_INDEX_STRATEGY_DOLLAR_NOT_LT = 28,
BSON_INDEX_STRATEGY_DOLLAR_NOT_LTE = 29,
BSON_INDEX_STRATEGY_GEONEAR = 30,
BSON_INDEX_STRATEGY_GEONEAR_RANGE = 31,
} BsonIndexStrategy;
#endif