@@ -20,6 +20,12 @@ based on the current `DataFrame` schema.
20
20
21
21
## generateInterfaces
22
22
23
+ ``` kotlin
24
+ inline fun <reified T > DataFrame<T>.generateInterfaces (): CodeString
25
+
26
+ fun <T > DataFrame<T>.generateInterfaces (markerName : String ): CodeString
27
+ ```
28
+
23
29
Generates [ ` @DataSchema ` ] ( schemas.md ) interfaces for this ` DataFrame `
24
30
(including all nested ` DataFrame ` columns and column groups) as Kotlin interfaces.
25
31
@@ -87,6 +93,16 @@ df.cast<_DataFrameType1>().filter { orders.all { orderId >= 102 } }
87
93
88
94
## generateDataClasses
89
95
96
+ ``` kotlin
97
+ inline fun <reified T > DataFrame<T>.generateDataClasses (
98
+ markerName : String? = null,
99
+ extensionProperties : Boolean = false,
100
+ visibility : MarkerVisibility = MarkerVisibility .IMPLICIT_PUBLIC ,
101
+ useFqNames : Boolean = false,
102
+ nameNormalizer : NameNormalizer = NameNormalizer .default,
103
+ ): CodeString
104
+ ```
105
+
90
106
Generates Kotlin data classes corresponding to the ` DataFrame ` schema
91
107
(including all nested ` DataFrame ` columns and column groups).
92
108
@@ -152,6 +168,20 @@ val customers: List<Customer> = df.cast<Customer>().toList()
152
168
153
169
## generateCode
154
170
171
+ ``` kotlin
172
+ inline fun <reified T > DataFrame<T>.generateCode (
173
+ fields : Boolean = true,
174
+ extensionProperties : Boolean = true,
175
+ ): CodeString
176
+
177
+ fun <T > DataFrame<T>.generateCode (
178
+ markerName : String ,
179
+ fields : Boolean = true,
180
+ extensionProperties : Boolean = true,
181
+ visibility : MarkerVisibility = MarkerVisibility .IMPLICIT_PUBLIC ,
182
+ ): CodeString
183
+ ```
184
+
155
185
Generates a data schema interface as [ ` generateInterfaces() ` ] ( #generateinterfaces ) ,
156
186
along with explicit [ extension properties] ( extensionPropertiesApi.md ) .
157
187
Useful if you don't use the [ compiler plugin] ( Compiler-Plugin.md ) .
0 commit comments