HasSchema

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class HasSchema(val schemaArg: Int)

Matches the type parameter of the annotated class to DataRow/DataFrame type parameter T.

Annotate public API classes that implement DataRow/DataFrame interface to enable "extract schema/create column from values" operation:

df.add {
"col" from { it }
}

Result before: col: DataColumn<AddDataRow<MySchema>>

Result after:

col:
col1: Int
col2: String

Properties

Link copied to clipboard