public abstract class DocumentRepository<T, TId> implements Repository<T, TId>:
Shared lazy execution core for read-only document repositories.
Concrete JSON and XML providers materialize one atomic source generation; this class applies the canonical memory QIR without provider-specific query semantics. No file handle or parsed document survives a normal execution.
# Concrete providers derive from DocumentRepository<T, TId>.
| Modifier and Type | Member | Description |
|---|---|---|
| public | asQueryasQuery() as Query<T>: |
Returns a lazy identity query over this document source. |
| public | countcount() as Long: |
Returns the entity count in the selected atomic generation. |
| public | countPlancountPlan(plan as QueryPlanBase) as Long: |
Counts plan results through the canonical QIR evaluator. |
| public | executePlanexecutePlan(plan as QueryPlanBase) as Object: |
Executes a canonical query plan against one atomic generation. |
| public | existsPlanexistsPlan(plan as QueryPlanBase) as Boolean: |
Tests plan existence and stops as soon as the plan permits. |
| public | openStreamopenStream(plan as QueryPlanBase) as Object: |
Opens a sequential stream over one atomic generation. |
| public abstract | providerNameproviderName() as String |
Returns the concrete provider identifier. |
| public | providerTextproviderText(plan as QueryPlanBase) as String: |
Returns a redacted description of document execution. |
| public | validateBeforeReadvalidateBeforeRead() as Repository<T, TId>: |
Validates all keys and pins the validated immutable source generation. |