feat(inverted_index): add index reader (#2803)

* feat(inverted_index): add reader

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* fix: toml format

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: add prefix relative_ to the offset parameter

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* docs: add doc comment

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: update proto

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* fix: outdated docs

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

---------

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
Zhenchi
2023-11-27 11:31:44 +08:00
committed by GitHub
parent 9e58bba363
commit b3edbef1f3
11 changed files with 699 additions and 2 deletions

25
Cargo.lock generated
View File

@@ -3343,6 +3343,12 @@ dependencies = [
"winapi",
]
[[package]]
name = "fst"
version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a"
[[package]]
name = "funty"
version = "2.0.0"
@@ -3537,7 +3543,7 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
[[package]]
name = "greptime-proto"
version = "0.1.0"
source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=a11efce55d8ce20257e08842e4f4c1c8fce2b3a8#a11efce55d8ce20257e08842e4f4c1c8fce2b3a8"
source = "git+https://github.com/GreptimeTeam/greptime-proto.git?rev=2b3ae45740a49ec6a0830d71fc09c3093aeb5fe7#2b3ae45740a49ec6a0830d71fc09c3093aeb5fe7"
dependencies = [
"prost 0.12.2",
"serde",
@@ -3902,6 +3908,23 @@ dependencies = [
"quote",
]
[[package]]
name = "index"
version = "0.4.3"
dependencies = [
"async-trait",
"common-base",
"common-error",
"common-macro",
"fst",
"futures",
"greptime-proto",
"prost 0.12.2",
"snafu",
"tokio",
"tokio-util",
]
[[package]]
name = "indexmap"
version = "1.9.3"