-
Notifications
You must be signed in to change notification settings - Fork 0
secondary_index.cpp
makr-code edited this page Nov 18, 2025
·
1 revision
Path: src/index/secondary_index.cpp
Purpose: Secondary index implementation for non‑primary key attributes.
Public functions / symbols:
inline std::vector<uint8_t> toBytes(std::string_view sv) {if (c == ':' || c == '%') {for (const auto& s : configJson["stopwords"]) {catch (...) { THEMIS_WARN("put(tx): alte Entity für PK={} nicht deserialisierbar", pk); }- ``
catch (...) { THEMIS_WARN("erase(tx): alte Entity für PK={} nicht deserialisierbar", pk); }if (lastColon != std::string_view::npos) {if (existingPK != pk) {if (conflict) {if (pos == std::string::npos) {for (const auto& c : columns) {if (!maybe) {for (const auto& t : tokens) { if (!t.empty()) tf[t]++; }for (const auto& [token, count] : tf) {for (const auto& col : indexedCols) {if (extractedPK == pk) {for (const auto& rcol : rangeCols) {if (existingPK == pk) {for (const auto& scol : sparseCols) {for (const auto& gcol : geoCols) {for (const auto& tcol : ttlCols) {for (const auto& fcol : fulltextCols) {for (const auto& token : uniqueTokens) {if (!blob) {if (count >= maxProbe) {if (!includeLower) {if (includeUpper) {for (const auto& pk : sameValuePks) {if (pk > anchorPk) {if (*it < anchorPk) {if (!reversed) {for (const auto& pk : more) {if (lat >= minLat && lat <= maxLat && lon >= minLon && lon <= maxLon) {if (dist <= radiusKm) {if (st.ok) {if (c == '"') {if (in_quotes) {for (const auto& pk : intersectionSet) {for (auto ph : phrases) {for (auto& token : tokens) {if (firstColon != std::string::npos) {if (secondColon != std::string::npos) {if (thirdColon != std::string::npos) {if (!maybeVal) { if (!advance()) { aborted = true; return false; } return true; }for (const auto& token : tokens) {if (!maybeLat || !maybeLon) { if (!advance()) { aborted = true; return false; } return true; }for (const auto& col : columns) {catch (...) {if (extractedPK != pk) {THEMIS_WARN("put: Konnte alte Entity für PK={} nicht deserialisieren", pk);
- AQL Overview
- AQL Syntax Reference
- EXPLAIN and PROFILE
- Hybrid Queries
- Pattern Matching
- Subquery Implementation
- Subquery Quick Reference
- Fulltext Release Notes
- Hybrid Search Design
- Fulltext Search API
- Content Search
- Pagination Benchmarks
- Stemming
- Hybrid Fusion API
- Performance Tuning
- Migration Guide
- Storage Overview
- RocksDB Layout
- Geo Schema
- Index Types
- Index Statistics
- Index Backup
- HNSW Persistence
- Vector Index
- Graph Index
- Secondary Index
- Security Overview
- RBAC and Authorization
- TLS Setup
- Certificate Pinning
- Encryption Strategy
- Column Encryption
- Key Management
- Key Rotation
- HSM Integration
- PKI Integration
- eIDAS Signatures
- PII Detection
- PII API
- Threat Model
- Hardening Guide
- Incident Response
- SBOM
- Enterprise Overview
- Scalability Features
- Scalability Strategy
- HTTP Client Pool
- Enterprise Build Guide
- Enterprise Ingestion
- Benchmarks Overview
- Compression Benchmarks
- Compression Strategy
- Memory Tuning
- Hardware Acceleration
- GPU Acceleration Plan
- CUDA Backend
- Vulkan Backend
- Multi-CPU Support
- TBB Integration
- Time Series
- Vector Operations
- Graph Features
- Temporal Graphs
- Path Constraints
- Recursive Queries
- Audit Logging
- Change Data Capture
- Transactions
- Semantic Cache
- Cursor Pagination
- Compliance Features
- GNN Embeddings
- Geo Overview
- Geo Architecture
- 3D Game Acceleration
- Geo Feature Tiering
- G3 Phase 2 Status
- G5 Implementation
- Integration Guide
- Content Architecture
- Content Pipeline
- Content Manager
- JSON Ingestion
- Content Ingestion
- Filesystem API
- Image Processor
- Geo Processor
- Policy Implementation
- Developer Guide
- Implementation Status
- Development Roadmap
- Build Strategy
- Build Acceleration
- Code Quality Guide
- AQL LET Implementation
- Audit API Implementation
- SAGA API Implementation
- PKI eIDAS
- WAL Archiving
- Architecture Overview
- Strategic Overview
- Ecosystem
- MVCC Design
- Base Entity
- Caching Strategy
- Caching Data Structures
- Docker Build
- Docker Status
- Multi-Arch CI/CD
- ARM Build Guide
- ARM Packages
- Raspberry Pi Tuning
- Packaging Guide
- Package Maintainers
- Roadmap
- Changelog
- Database Capabilities
- Implementation Summary
- Sachstandsbericht 2025
- Enterprise Final Report
- Test Report
- Build Success Report
- Integration Analysis
- Source Overview
- API Implementation
- Query Engine
- Storage Layer
- Security Implementation
- CDC Implementation
- Time Series
- Utils and Helpers
Updated: 2025-11-30