HanaTranslator#
Translate internal query language elements to valid filters params for HANA vectorstore.
Attributes
allowed_comparators
Allowed comparators for the visitor.
allowed_operators
Subset of allowed logical operators.
Methods
visit_comparison
(comparison)Translate a Comparison.
visit_operation
(operation)Translate an Operation.
visit_structured_query
(structured_query)Translate a StructuredQuery.
Translate a Comparison.
- Parameters:
comparison (Comparison) – Comparison to translate.
- Return type:
Dict
Translate an Operation.
- Parameters:
operation (Operation) – Operation to translate.
- Return type:
Dict
Translate a StructuredQuery.
- Parameters:
structured_query (StructuredQuery) – StructuredQuery to translate.
- Return type:
Tuple[str, dict]
Examples using HanaTranslator