Package-level declarations

Types

Link copied to clipboard
sealed interface CodeGenerationReadResult
Link copied to clipboard
internal class CodeGeneratorImpl(typeRendering: TypeRenderingStrategy = FullyQualifiedNames) : ExtensionsCodeGeneratorImpl, CodeGenerator
Link copied to clipboard
sealed interface DfReadResult
Link copied to clipboard
Link copied to clipboard
internal interface ReplCodeGenerator
Link copied to clipboard
Link copied to clipboard
internal class SchemaProcessorImpl(existingMarkers: Iterable<Marker>, val namePrefix: String, fieldNameNormalizer: (String) -> String = { it }, nestedMarkerNameProvider: MarkerNameProvider = MarkerNameProvider.fromColumnName) : SchemaProcessor
Link copied to clipboard
Link copied to clipboard
internal interface TypeRenderingStrategy

Strategy to render types. Instances include FullyQualifiedNames and ShortNames.

Properties

Link copied to clipboard
internal val charsToQuote: Regex
Link copied to clipboard
val CodeGenerator.Companion.urlCodeGenReader: (url: URL, name: String, formats: List<SupportedFormat>, generateHelperCompanionObject: Boolean) -> CodeGenerationReadResult

Reader that can read data from a URL and generate code (type schema representations) for it. It tries to guess the format based on the given formats and returns CodeGenerationReadResult.Success, or returns CodeGenerationReadResult.Error if it fails.

Link copied to clipboard

Reader that can read a dataframe from a URL. It tries to guess the format based on the given formats and returns DfReadResult.Success, or returns DfReadResult.Error if it fails.

Functions

Link copied to clipboard
internal fun createCodeWithTypeCastGenerator(code: String, vararg targetTypeNames: String): CodeWithTypeCastGenerator

Simple utility function that creates a CodeWithTypeCastGenerator using code and TypeCastGenerator.DataFrameApi, meaning it uses the cast functions of DataFrame.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal fun List<Code>.join(): String
Link copied to clipboard
internal fun String.needsQuoting(): Boolean
Link copied to clipboard
internal inline fun <reified T> ReplCodeGenerator.process(): Code
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Code.toStandaloneSnippet(packageName: String, additionalImports: List<String>): String
fun CodeGenResult.toStandaloneSnippet(packageName: String, additionalImports: List<String>): String
fun CodeWithTypeCastGenerator.toStandaloneSnippet(packageName: String, additionalImports: List<String>): String