Scene-owned bounded search projection. One active session, no retained entity pointers. @thread Engine thread only. Does not invoke callbacks or modify the scene. 更多...
#include <SceneSearch.h>
Public 成员函数 | |
| SceneSearch () | |
| Create an empty engine-thread search session; invokes no callbacks. | |
| ~SceneSearch () override | |
| Release the derived HNSW index before its distance-space owner. | |
| SceneSearch (const SceneSearch &)=delete | |
| SceneSearch & | operator= (const SceneSearch &)=delete |
| SceneSearch (SceneSearch &&)=delete | |
| SceneSearch & | operator= (SceneSearch &&)=delete |
| void | invalidate () |
| Drop all projection tokens at an owning runtime/world boundary; engine thread, no callbacks. | |
| Result< SceneSearchSnapshot > | prepare (std::string_view host) override |
| Capture an existing host; invalidates the old session only on success. | |
| Result< SceneSearchSnapshot > | status () override |
| Read live geometry and current index identity; source changes return an explicit stale status. | |
| Result< void > | publish (const SceneEmbeddingBatch &batch) override |
| Validate source and publish one complete normalized embedding space atomically. | |
| Result< SceneSearchResult > | query (const SceneSearchQuery &query) override |
| Validate source, apply exact filters, rank and page without scene mutation. | |
Public 成员函数 继承自 eve::ISceneSearch | |
| virtual | ~ISceneSearch ()=default |
| Destroy the provider and its derived projection. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::ISceneSearch | |
| static constexpr const char * | capabilityName = "ISceneSearch" |
详细描述
Scene-owned bounded search projection. One active session, no retained entity pointers. @thread Engine thread only. Does not invoke callbacks or modify the scene.
在文件 SceneSearch.h 第 12 行定义.
构造及析构函数说明
◆ SceneSearch() [1/3]
|
default |
Create an empty engine-thread search session; invokes no callbacks.
◆ ~SceneSearch()
|
overridedefault |
Release the derived HNSW index before its distance-space owner.
◆ SceneSearch() [2/3]
|
delete |
◆ SceneSearch() [3/3]
|
delete |
成员函数说明
◆ invalidate()
| void eve::scene::SceneSearch::invalidate | ( | ) |
Drop all projection tokens at an owning runtime/world boundary; engine thread, no callbacks.
在文件 SceneSearch.cpp 第 304 行定义.
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
delete |
◆ prepare()
|
overridevirtual |
Capture an existing host; invalidates the old session only on success.
实现了 eve::ISceneSearch.
在文件 SceneSearch.cpp 第 315 行定义.
引用了 eve::Result< T >::failure(), host, result , 以及 eve::Result< T >::success().
◆ publish()
|
overridevirtual |
Validate source and publish one complete normalized embedding space atomically.
实现了 eve::ISceneSearch.
在文件 SceneSearch.cpp 第 342 行定义.
引用了 eve::Conflict, current, error, eve::Failed, eve::Result< T >::failure(), eve::SceneSearchSnapshot::host, index, eve::InvalidArgument, eve::SceneEmbeddingBatch::model, eve::SceneSearchSnapshot::records, eve::SceneEmbeddingBatch::snapshot, eve::StaleHandle, eve::Result< T >::success(), eve::SceneSearchSnapshot::token, value, values , 以及 eve::SceneEmbeddingBatch::vectors.
◆ query()
|
overridevirtual |
Validate source, apply exact filters, rank and page without scene mutation.
实现了 eve::ISceneSearch.
在文件 SceneSearch.cpp 第 380 行定义.
引用了 a, axis, b, eve::Conflict, current, distance, end, error, evidence, eve::Failed, eve::Result< T >::failure(), filter, found, hit, eve::SceneSearchSnapshot::host, eve::InvalidArgument, key, label, number, out, query(), record, eve::SceneSearchSnapshot::records, eve::SceneSearchResult::snapshot, spatial, eve::StaleHandle, start, eve::Result< T >::success(), tag, eve::SceneSearchSnapshot::token, eve::Unsupported, value , 以及 values.
被这些函数引用 query().
◆ status()
|
overridevirtual |
Read live geometry and current index identity; source changes return an explicit stale status.
实现了 eve::ISceneSearch.
在文件 SceneSearch.cpp 第 329 行定义.
引用了 eve::Conflict, current, eve::Result< T >::failure(), eve::SceneSearchSnapshot::host, eve::NotFound, out, eve::Result< T >::success() , 以及 eve::SceneSearchSnapshot::token.
该类的文档由以下文件生成:
- src/modules/scene/SceneSearch.h
- src/modules/scene/SceneSearch.cpp
Public 成员函数 继承自