SchemaInferencerFromExampleImpl

class SchemaInferencerFromExampleImpl(typeName: String, iss: IonSchemaSystem, schemaIds: List<String>) : SchemaInferencerFromExample

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>)

Functions

Link copied to clipboard
open override fun inferFromExamples(reader: IonReader, maxExampleCount: Int, definiteISL: IonSchemaModel.Schema?): IonSchemaModel.Schema

Infers an IonSchemaModel.Schema from an IonReader using maxExampleCount examples.

Properties

Link copied to clipboard
val schemaIds: List<String>
Link copied to clipboard
val typeName: String