mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 20:27:03 +00:00
Add a module parsing the statement restrictions into Vector Store filtering API compatible JSON objects. The API was defined in: scylladb/vector-store#334 Examplary JSON object compatible with the API: ``` { "restrictions": [ { "type": "==", "lhs": "pk", "rhs": 1 }, { "type": "IN", "lhs": "pk", "rhs": [2, 3] }, { "type": "<", "lhs": "ck", "rhs": 4 }, { "type": "<=", "lhs": "ck", "rhs": 5 }, { "type": ">", "lhs": "pk", "rhs": 6 }, { "type": ">=", "lhs": "pk", "rhs": 7 }, { "type": "()==()", "lhs": ["pk", "ck"], "rhs": [10, 20] }, { "type": "()IN()", "lhs": ["pk", "ck"], "rhs": [[100, 200], [300, 400]] }, { "type": "()<()", "lhs": ["pk", "ck"], "rhs": [30, 40] }, { "type": "()<=()", "lhs": ["pk", "ck"], "rhs": [50, 60] }, { "type": "()>()", "lhs": ["pk", "ck"], "rhs": [70, 80] }, { "type": "()>=()", "lhs": ["pk", "ck"], "rhs": [90, 0] } ], "allow_filtering": true } ```
22 lines
390 B
CMake
22 lines
390 B
CMake
add_library(vector_search STATIC)
|
|
target_sources(vector_search
|
|
PRIVATE
|
|
vector_store_client.cc
|
|
dns.cc
|
|
client.cc
|
|
clients.cc
|
|
filter.cc
|
|
truststore.cc)
|
|
target_link_libraries(vector_search
|
|
PUBLIC
|
|
Seastar::seastar
|
|
PRIVATE
|
|
db
|
|
utils
|
|
schema
|
|
scylla_dht
|
|
)
|
|
|
|
check_headers(check-headers vector_search
|
|
GLOB_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/*.hh)
|