Schema Inferencer From Example Impl
class SchemaInferencerFromExampleImpl(typeName: String, iss: IonSchemaSystem, schemaIds: List<String>) : SchemaInferencerFromExample
Content copied to clipboard
Implementation for SchemaInferencerFromExample. Requires a typeName for the generated schema's top level type name. Also requires an IonSchemaSystem and schemaIds to load additional schema types that will be used in the generated schema. The passed schemaIds will also be used for the generated IonSchemaModel.SchemaStatement.HeaderStatement's IonSchemaModel.ImportList.
Constructors
Link copied to clipboard
fun SchemaInferencerFromExampleImpl(typeName: String, iss: IonSchemaSystem, schemaIds: List<String>)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun inferFromExamples(reader: IonReader, maxExampleCount: Int, definiteISL: IonSchemaModel.Schema?): IonSchemaModel.Schema
Content copied to clipboard
Infers an IonSchemaModel.Schema from an IonReader using maxExampleCount examples.