Skip to content

Commit 9af7357

Browse files
committed
Add missed compiler plugin annotations for Split
1 parent 2bf037a commit 9af7357

File tree

1 file changed

+4
-0
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+4
-0
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/split.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ public fun <T, C, R> SplitWithTransform<T, C, R>.inward(
287287
vararg otherNames: KProperty<*>,
288288
): DataFrame<T> = inward(listOf(firstName.columnName) + otherNames.map { it.columnName })
289289

290+
@Refine
291+
@Interpretable("SplitIterableInward")
290292
public inline fun <T, C : Iterable<R>, reified R> Split<T, C>.inward(
291293
vararg names: String,
292294
noinline extraNamesGenerator: ColumnNamesGenerator<C>? = null,
@@ -298,6 +300,8 @@ public fun <T, C : DataFrame<R>, R> Split<T, C>.inward(
298300
extraNamesGenerator: ColumnNamesGenerator<C>? = null,
299301
): DataFrame<T> = by { it.rows() }.inward(names.toList(), extraNamesGenerator)
300302

303+
@Refine
304+
@Interpretable("SplitPairInward")
301305
public fun <T, A, B> Split<T, Pair<A, B>>.inward(firstCol: String, secondCol: String): DataFrame<T> =
302306
by { listOf(it.first, it.second) }.inward(firstCol, secondCol)
303307

0 commit comments

Comments
 (0)