Skip to content

Commit ef49ecf

Browse files
committed
Add plugin annotations to some ColumnPath related CS DSL operations
1 parent c1a46a8 commit ef49ecf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
5959
* @throws [IllegalArgumentException] if the column is not found.
6060
* @return The [DataColumn] this [ColumnPath] points to.
6161
*/
62+
@Interpretable("ColumnPathInvokeTyped")
6263
public operator fun <C> ColumnPath.invoke(): DataColumn<C> = getColumn(this).cast()
6364

6465
/**
@@ -205,12 +206,14 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
205206
* "myColumn"["myNestedColumn"]["myDoublyNestedColumn"]<NestedColumnType>()
206207
* ```
207208
*/
209+
@Interpretable("StringGetColumn")
208210
public operator fun String.get(column: String): ColumnPath = pathOf(this, column)
209211

210212
/**
211213
* As extension to `"myColumn"["myNestedColumn"]`, this function enables
212214
* `"myColumn"["myNestedColumn"]["myDoublyNestedColumn"]` as alternative to
213215
* [pathOf]`("myColumn", "myNestedColumn", "myDoublyNestedColumn")`
214216
*/
217+
@Interpretable("ColumnPathGetColumn")
215218
public operator fun ColumnPath.get(column: String): ColumnPath = this + column
216219
}

0 commit comments

Comments
 (0)