QueryModelSource

fun interface QueryModelSource

Type inference for the query Catalog: reports how a JVM type serializes, as raw facts.

A model source knows JSON shapes and annotations, not queries: it reports paths, types, nullability, enums, format hints and the annotations found on each member. What those facts mean for a query model (sensitivity and masking, time encoding, which types form a model, how event payloads combine) is decided by InferredQuerySchemaSource.

Functions

Link copied to clipboard
abstract fun describe(type: Class<*>): QueryTypeFact

The serialized shape of type. Failures propagate; a source must not return partial facts.