InferredField

What the catalog knows about one path.

A thin, named reading of a PathSketch against the document count, so that a caller asking "is this field always there" gets a ratio rather than having to divide two counters and know which denominator is the right one.

Properties

Link copied to clipboard

Mean encoded size of the value at this path, subtree included.

Link copied to clipboard

Numeric and text ranges.

Link copied to clipboard

Estimated distinct scalar values. Exact for low-cardinality paths; see PathSketch.

Link copied to clipboard
Link copied to clipboard

The most common kind, or null if nothing was observed.

Link copied to clipboard

Whether the path holds one scalar type in every document that has it.

Link copied to clipboard

The share of observations whose value was the JSON null, as opposed to being absent.

Link copied to clipboard

Documents — or array elements — in which the path was present.

Link copied to clipboard

The path, with array indices collapsed. See CatalogPath.

Link copied to clipboard

Observations divided by documents.

Link copied to clipboard

The raw statistics this reading is derived from.

Link copied to clipboard

Observations by kind, largest first. See PathSketch.types.

Link copied to clipboard

The share of observations that took dominantType. One means the path has a single type.

Functions

Link copied to clipboard
open override fun toString(): String