Schema API
Index
JsonGrinder.ArrayEntryJsonGrinder.DictEntryJsonGrinder.LeafEntryJsonGrinder.SchemaBase.mergeBase.merge!JsonGrinder.max_string_codeunitsJsonGrinder.max_string_codeunits!JsonGrinder.max_valuesJsonGrinder.max_values!JsonGrinder.newentryJsonGrinder.schemaJsonGrinder.update!
API
JsonGrinder.schema — Functionschema([f=identity,] jsons)Create schema from an iterable of jsons optionally mapped by function f.
JsonGrinder.update! — Functionupdate!(e, v)Update the Schema e with value v and return the resulting entry.
JsonGrinder.newentry — Functionnewentry(v)Create and return a new Schema according to the type of v.
Base.merge — Functionmerge(schemas...)Merge multiple schemas into one.
Useful when for example distributing calculation of schema across multiple workers to aggregate all results.
Base.merge! — FunctionJsonGrinder.Schema — TypeSchemaSupertype for all schema node types.
JsonGrinder.LeafEntry — TypeLeafEntry{T} <: SchemaKeeps statistics about scalar values of type T in leaves.
JsonGrinder.DictEntry — TypeDictEntry <: SchemaKeeps statistics about JSON "objects" containing key-value pairs.
JsonGrinder.ArrayEntry — TypeArrayEntry <: SchemaKeeps statistics about an "array" entry in JSONs.
JsonGrinder.max_values — FunctionJsonGrinder.max_values!(n::Int)Get the current value of the max_values parameter.
See also: JsonGrinder.max_values!.
JsonGrinder.max_values! — FunctionJsonGrinder.max_values!(n::Int; persist=false)Set the value of the max_values parameter.
Set persist=true to persist this setting between sessions.
See also: JsonGrinder.max_values.
JsonGrinder.max_string_codeunits — FunctionJsonGrinder.max_string_codeunits!(n::Int)Get the current value of the max_string_codeunits parameter.
See also: JsonGrinder.max_string_codeunits!.
JsonGrinder.max_string_codeunits! — FunctionJsonGrinder.max_string_codeunits!(n::Int; persist=false)Set the value of the max_string_codeunits parameter.
Set persist=true to persist this setting between sessions.
See also: JsonGrinder.max_string_codeunits.