@@ -97,8 +97,7 @@ public interface AllExceptColumnsSelectionDsl {
97
97
/* *
98
98
* ## (All) (Cols) Except
99
99
*
100
- * Perform a selection of columns using the {@include [ColumnsSelectionDslLink]} to
101
- * exclude from the current selection.
100
+ * Exclude a selection of columns from the current selection using the {@include [ColumnsSelectionDslLink]}.
102
101
*
103
102
* ### Check out: [Grammar]
104
103
*
@@ -139,7 +138,7 @@ public interface AllExceptColumnsSelectionDsl {
139
138
*
140
139
* `df.`[select][DataFrame.select]` { `[allExcept][ColumnsSelectionDsl.allExcept]` { userData.age `[and][ColumnsSelectionDsl.and]` height } }`
141
140
*
142
- * ### On [ColumnGroups][ColumnGroup]
141
+ * ### On [ColumnGroups][ColumnGroup]: All Cols Except
143
142
* The variant of this function on [ColumnGroups][ColumnGroup] is a bit different as it changes the scope relative to
144
143
* the column group.
145
144
* {@include [LineBreak]}
@@ -158,6 +157,19 @@ public interface AllExceptColumnsSelectionDsl {
158
157
* Also note the name change, similar to [allCols][ColumnsSelectionDsl.allCols], this makes it clearer that you're selecting
159
158
* columns inside the group, 'lifting' them out.
160
159
*
160
+ * ### On [ColumnGroups][ColumnGroup]: Except
161
+ * This variant can be used to exclude some nested columns from a [ColumnGroup] in the selection.
162
+ * In contrast to [allColsExcept][ColumnsSelectionDsl.allColsExcept],
163
+ * this function does not 'lift' the columns out of the group, preserving the structure.
164
+ *
165
+ * So:
166
+ *
167
+ * `df.`[select][DataFrame.select]` { colGroup.`[except][SingleColumn.except]` { col } }`
168
+ *
169
+ * is shorthand for:
170
+ *
171
+ * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]`(colGroup) `[except][ColumnSet.except]` colGroup.col }`
172
+ *
161
173
* ### Examples for this overload
162
174
* {@get [EXAMPLE]}
163
175
*
@@ -184,9 +196,9 @@ public interface AllExceptColumnsSelectionDsl {
184
196
/* *
185
197
* @include [CommonExceptDocs]
186
198
* {@set [CommonExceptDocs.EXAMPLE]
187
- * `df.`[select][ColumnsSelectionDsl.select]` { `[colsOf][ColumnsSelectionDsl.colsOf]`<`[Number][Number]`>() `[except][ColumnSet.except]` ` {@get [ARGUMENT_1]}` \}`
199
+ * `df.`[select][ColumnsSelectionDsl.select]` { `[colsOf][ColumnsSelectionDsl.colsOf]`<`[Number][Number]`>() `[except][ColumnSet.except]` {@get [ARGUMENT_1]} \}`
188
200
*
189
- * `df.`[select][ColumnsSelectionDsl.select]` { `[cols][ColumnsSelectionDsl.cols]`(name, age) `[except][ColumnSet.except]` ` {@get [ARGUMENT_2]}` \}`
201
+ * `df.`[select][ColumnsSelectionDsl.select]` { `[cols][ColumnsSelectionDsl.cols]`(name, age) `[except][ColumnSet.except]` {@get [ARGUMENT_2]} \}`
190
202
* }
191
203
*/
192
204
private interface ColumnSetInfixDocs {
@@ -201,9 +213,9 @@ public interface AllExceptColumnsSelectionDsl {
201
213
/* *
202
214
* @include [CommonExceptDocs]
203
215
* {@set [CommonExceptDocs.EXAMPLE]
204
- * `df.`[select][ColumnsSelectionDsl.select]` { `[colsOf][ColumnsSelectionDsl.colsOf]`<`[Number][Number]`>().`[except][ColumnSet.except]{@get [ARGUMENT_1]}` \}`
216
+ * `df.`[select][ColumnsSelectionDsl.select]` { `[colsOf][ColumnsSelectionDsl.colsOf]`<`[Number][Number]`>().`[except][ColumnSet.except]` {@get [ARGUMENT_1]} \}`
205
217
*
206
- * `df.`[select][ColumnsSelectionDsl.select]` { `[cols][ColumnsSelectionDsl.cols]`(name, age).`[except][ColumnSet.except]{@get [ARGUMENT_2]}` \}`
218
+ * `df.`[select][ColumnsSelectionDsl.select]` { `[cols][ColumnsSelectionDsl.cols]`(name, age).`[except][ColumnSet.except]` {@get [ARGUMENT_2]} \}`
207
219
* }
208
220
*/
209
221
private interface ColumnSetVarargDocs {
@@ -219,53 +231,53 @@ public interface AllExceptColumnsSelectionDsl {
219
231
* @include [ColumnSetInfixDocs]
220
232
* @set [CommonExceptDocs.PARAM] @param [selector\] A lambda in which you specify the columns that need to be
221
233
* excluded from the [ColumnSet]. The scope of the selector is the same as the outer scope.
222
- * @set [ColumnSetInfixDocs.ARGUMENT_1] ` { "age" `[and][ColumnsSelectionDsl.and]` height }`
223
- * @set [ColumnSetInfixDocs.ARGUMENT_2] ` { name.firstName }`
234
+ * @set [ColumnSetInfixDocs.ARGUMENT_1] { "age" `[and][ColumnsSelectionDsl.and]` height }
235
+ * @set [ColumnSetInfixDocs.ARGUMENT_2] { name.firstName }
224
236
*/
225
237
public infix fun <C > ColumnSet<C>.except (selector : () -> ColumnsResolver <* >): ColumnSet <C > = except(selector())
226
238
227
239
/* *
228
240
* @include [ColumnSetInfixDocs]
229
241
* @set [CommonExceptDocs.PARAM] @param [other\] A [ColumnsResolver] containing the columns that need to be
230
242
* excluded from the [ColumnSet].
231
- * @set [ColumnSetInfixDocs.ARGUMENT_1] ` "age" `[and][ColumnsSelectionDsl.and]` height`
232
- * @set [ColumnSetInfixDocs.ARGUMENT_2] ` name.firstName`
243
+ * @set [ColumnSetInfixDocs.ARGUMENT_1] "age" `[and][ColumnsSelectionDsl.and]` height
244
+ * @set [ColumnSetInfixDocs.ARGUMENT_2] name.firstName
233
245
*/
234
246
public infix fun <C > ColumnSet<C>.except (other : ColumnsResolver <* >): ColumnSet <C > = exceptInternal(other)
235
247
236
248
/* *
237
249
* @include [ColumnSetVarargDocs]
238
250
* @set [CommonExceptDocs.PARAM] @param [others\] Any number of [ColumnsResolvers][ColumnsResolver] containing
239
251
* the columns that need to be excluded from the [ColumnSet].
240
- * @set [ColumnSetVarargDocs.ARGUMENT_1] ` (age, userData.height)`
241
- * @set [ColumnSetVarargDocs.ARGUMENT_2] ` (name.firstName, name.middleName)`
252
+ * @set [ColumnSetVarargDocs.ARGUMENT_1] (age, userData.height)
253
+ * @set [ColumnSetVarargDocs.ARGUMENT_2] (name.firstName, name.middleName)
242
254
*/
243
255
public fun <C > ColumnSet<C>.except (vararg others : ColumnsResolver <* >): ColumnSet <C > = except(others.toColumnSet())
244
256
245
257
/* *
246
258
* @include [ColumnSetInfixDocs]
247
259
* @set [CommonExceptDocs.PARAM] @param [other\] A [String] referring to
248
260
* the column (relative to the current scope) that needs to be excluded from the [ColumnSet].
249
- * @set [ColumnSetInfixDocs.ARGUMENT_1] ` "age"`
250
- * @set [ColumnSetInfixDocs.ARGUMENT_2] ` "name"`
261
+ * @set [ColumnSetInfixDocs.ARGUMENT_1] "age"
262
+ * @set [ColumnSetInfixDocs.ARGUMENT_2] "name"
251
263
*/
252
264
public infix fun <C > ColumnSet<C>.except (other : String ): ColumnSet <C > = except(column<Any ?>(other))
253
265
254
266
/* *
255
267
* @include [ColumnSetVarargDocs]
256
268
* @set [CommonExceptDocs.PARAM] @param [others\] Any number of [Strings][String] referring to
257
269
* the columns (relative to the current scope) that need to be excluded from the [ColumnSet].
258
- * @set [ColumnSetVarargDocs.ARGUMENT_1] ` ("age", "height")`
259
- * @set [ColumnSetVarargDocs.ARGUMENT_2] ` ("name")`
270
+ * @set [ColumnSetVarargDocs.ARGUMENT_1] ("age", "height")
271
+ * @set [ColumnSetVarargDocs.ARGUMENT_2] ("name")
260
272
*/
261
273
public fun <C > ColumnSet<C>.except (vararg others : String ): ColumnSet <C > = except(others.toColumnSet())
262
274
263
275
/* *
264
276
* @include [ColumnSetInfixDocs]
265
277
* @set [CommonExceptDocs.PARAM] @param [other\] A [KProperty] referring to
266
278
* the column (relative to the current scope) that needs to be excluded from the [ColumnSet].
267
- * @set [ColumnSetInfixDocs.ARGUMENT_1] ` Person::age`
268
- * @set [ColumnSetInfixDocs.ARGUMENT_2] ` Person::name`
279
+ * @set [ColumnSetInfixDocs.ARGUMENT_1] Person::age
280
+ * @set [ColumnSetInfixDocs.ARGUMENT_2] Person::name
269
281
*/
270
282
@AccessApiOverload
271
283
public infix fun <C > ColumnSet<C>.except (other : KProperty <C >): ColumnSet <C > = except(column(other))
@@ -274,8 +286,8 @@ public interface AllExceptColumnsSelectionDsl {
274
286
* @include [ColumnSetVarargDocs]
275
287
* @set [CommonExceptDocs.PARAM] @param [others\] Any number of [KProperties][KProperty] referring to
276
288
* the columns (relative to the current scope) that need to be excluded from the [ColumnSet].
277
- * @set [ColumnSetVarargDocs.ARGUMENT_1] ` (Person::age, Person::height)`
278
- * @set [ColumnSetVarargDocs.ARGUMENT_2] ` (Person::name)`
289
+ * @set [ColumnSetVarargDocs.ARGUMENT_1] (Person::age, Person::height)
290
+ * @set [ColumnSetVarargDocs.ARGUMENT_2] (Person::name)
279
291
*/
280
292
@AccessApiOverload
281
293
public fun <C > ColumnSet<C>.except (vararg others : KProperty <C >): ColumnSet <C > = except(others.toColumnSet())
@@ -284,17 +296,17 @@ public interface AllExceptColumnsSelectionDsl {
284
296
* @include [ColumnSetInfixDocs]
285
297
* @set [CommonExceptDocs.PARAM] @param [other\] A [ColumnPath] referring to
286
298
* the column (relative to the current scope) that needs to be excluded from the [ColumnSet].
287
- * @set [ColumnSetInfixDocs.ARGUMENT_1] ` "userdata"["age"]`
288
- * @set [ColumnSetInfixDocs.ARGUMENT_2] ` pathOf("name", "firstName")`
299
+ * @set [ColumnSetInfixDocs.ARGUMENT_1] "userdata"["age"]
300
+ * @set [ColumnSetInfixDocs.ARGUMENT_2] pathOf("name", "firstName")
289
301
*/
290
302
public infix fun <C > ColumnSet<C>.except (other : ColumnPath ): ColumnSet <C > = except(column<Any ?>(other))
291
303
292
304
/* *
293
305
* @include [ColumnSetVarargDocs]
294
306
* @set [CommonExceptDocs.PARAM] @param [others\] Any number of [ColumnPaths][ColumnPath] referring to
295
307
* the columns (relative to the current scope) that need to be excluded from the [ColumnSet].
296
- * @set [ColumnSetVarargDocs.ARGUMENT_1] ` (pathOf("age"), "userdata"["height"])`
297
- * @set [ColumnSetVarargDocs.ARGUMENT_2] ` ("name"["firstName"], "name"["middleName"])`
308
+ * @set [ColumnSetVarargDocs.ARGUMENT_1] (pathOf("age"), "userdata"["height"])
309
+ * @set [ColumnSetVarargDocs.ARGUMENT_2] ("name"["firstName"], "name"["middleName"])
298
310
*/
299
311
public fun <C > ColumnSet<C>.except (vararg others : ColumnPath ): ColumnSet <C > = except(others.toColumnSet())
300
312
0 commit comments