Package org.partiql.lang.schemadiscovery

Types

Link copied to clipboard
class IonExampleParser(ion: IonSystem)

Basic parser for ion data.

Link copied to clipboard
class NormalizeDecimalPrecisionsToUpToRange : IonSchemaModel.VisitorTransform

Normalizes decimal precisions (IonSchemaModel.Constraint.Precision) to an "upto" range. For exact precision p, returns an inclusive range from 1 to p. For a ranged precision with an inclusive max, returns an inclusive range from 1 to max.

Link copied to clipboard
class NormalizeNullableVisitorTransform : IonSchemaModel.VisitorTransform

This VisitorTransform normalizes IonSchemaModel.Constraint.AnyOf constraints that have the null type to use the nullable annotation. E.g.

Link copied to clipboard
interface SchemaInferencerFromExample

Infers a basic schema from a sequence of example data.

Link copied to clipboard
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.

Link copied to clipboard
enum TypeConstraint : Enum<TypeConstraint>

Enum representing the core IonSchemaModel.TypeReference.NamedTypes along with their corresponding typeNames.