httk.serve.optimade.model.results¶
Classes¶
Represent one entry result and its envelope data. |
|
The results of a query against a backend, as consumed by the entry endpoints. |
|
The callback seam through which the request engine runs queries on a backend. |
|
Structural adapter contract consumed by the public serving helpers. |
Module Contents¶
- class httk.serve.optimade.model.results.ResultRow[source]¶
Represent one entry result and its envelope data.
- Parameters:
values – Response-field values keyed by OPTIMADE property name.
relationships – Related resources keyed by entry type.
property_metadata – Per-property metadata keyed by response field.
- class httk.serve.optimade.model.results.QueryResults[source]¶
Bases:
ProtocolThe results of a query against a backend, as consumed by the entry endpoints.
Iteration yields one
ResultRowper entry; itsvaluesmap OPTIMADE response-field names to values, and theidandtypekeys are always present.
- class httk.serve.optimade.model.results.QueryFunction[source]¶
Bases:
ProtocolThe callback seam through which the request engine runs queries on a backend.
- class httk.serve.optimade.model.results.OptimadeAdapter[source]¶
Bases:
ProtocolStructural adapter contract consumed by the public serving helpers.
Query execution may be backed by the ordinary Store/Searcher adapter or a storage federation with its own bounded paging policy. The HTTP layer only needs the served schema and a callback implementing
QueryFunction.- property schema: httk.serve.optimade.schema.served.ServedSchema[source]¶
Return the schema supplied by the adapter.