Schema API
Index
JsonGrinder.ArrayEntry
JsonGrinder.DictEntry
JsonGrinder.LeafEntry
JsonGrinder.Schema
Base.merge
Base.merge!
JsonGrinder.max_string_codeunits
JsonGrinder.max_string_codeunits!
JsonGrinder.max_values
JsonGrinder.max_values!
JsonGrinder.newentry
JsonGrinder.schema
JsonGrinder.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
— TypeSchema
Supertype for all schema node types.
JsonGrinder.LeafEntry
— TypeLeafEntry{T} <: Schema
Keeps statistics about scalar values of type T
in leaves.
JsonGrinder.DictEntry
— TypeDictEntry <: Schema
Keeps statistics about JSON "objects" containing key-value pairs.
JsonGrinder.ArrayEntry
— TypeArrayEntry <: Schema
Keeps 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
.