@@ -11,6 +11,7 @@ import org.jetbrains.kotlinx.dataframe.columns.ColumnPath
11
11
import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
12
12
import org.jetbrains.kotlinx.dataframe.columns.FrameColumn
13
13
import org.jetbrains.kotlinx.dataframe.impl.columns.getColumn
14
+ import org.jetbrains.kotlinx.dataframe.util.DEPRECATED_ACCESS_API
14
15
import kotlin.reflect.KProperty
15
16
16
17
/* * [Column Selection DSL][ColumnSelectionDsl] */
@@ -86,9 +87,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
86
87
* @throws [IllegalArgumentException] if the column is not found.
87
88
* @return The [DataColumn] this [KProperty Accessor][KProperty] points to.
88
89
*/
89
- @Deprecated(
90
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
91
- )
90
+ @Deprecated(DEPRECATED_ACCESS_API )
92
91
@AccessApiOverload
93
92
public operator fun <T > KProperty<T>.invoke (): DataColumn <T > = this @ColumnSelectionDsl[this ]
94
93
@@ -99,9 +98,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
99
98
* @throws [IllegalArgumentException] if the column is not found.
100
99
* @return The [ColumnGroup] this [KProperty Accessor][KProperty] points to.
101
100
*/
102
- @Deprecated(
103
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
104
- )
101
+ @Deprecated(DEPRECATED_ACCESS_API )
105
102
@AccessApiOverload
106
103
public operator fun <T > KProperty<DataRow<T>>.invoke (): ColumnGroup <T > = this @ColumnSelectionDsl[this ]
107
104
@@ -112,9 +109,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
112
109
* @throws [IllegalArgumentException] if the column is not found.
113
110
* @return The [FrameColumn] this [KProperty Accessor][KProperty] points to.
114
111
*/
115
- @Deprecated(
116
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
117
- )
112
+ @Deprecated(DEPRECATED_ACCESS_API )
118
113
@AccessApiOverload
119
114
public operator fun <T > KProperty<DataFrame<T>>.invoke (): FrameColumn <T > = this @ColumnSelectionDsl[this ]
120
115
@@ -149,9 +144,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
149
144
*/
150
145
@Suppress(" INAPPLICABLE_JVM_NAME" )
151
146
@JvmName(" KPropertyDataRowGet" )
152
- @Deprecated(
153
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
154
- )
147
+ @Deprecated(DEPRECATED_ACCESS_API )
155
148
@AccessApiOverload
156
149
public operator fun <T , R > KProperty<DataRow<T>>.get (column : KProperty <R >): DataColumn <R > = invoke()[column]
157
150
@@ -171,9 +164,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
171
164
*/
172
165
@Suppress(" INAPPLICABLE_JVM_NAME" )
173
166
@JvmName(" KPropertyDataRowGet" )
174
- @Deprecated(
175
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
176
- )
167
+ @Deprecated(DEPRECATED_ACCESS_API )
177
168
@AccessApiOverload
178
169
public operator fun <T , R > KProperty<DataRow<T>>.get (column : KProperty <DataRow <R >>): ColumnGroup <R > =
179
170
invoke()[column]
@@ -194,9 +185,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
194
185
*/
195
186
@Suppress(" INAPPLICABLE_JVM_NAME" )
196
187
@JvmName(" KPropertyDataRowGet" )
197
- @Deprecated(
198
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
199
- )
188
+ @Deprecated(DEPRECATED_ACCESS_API )
200
189
@AccessApiOverload
201
190
public operator fun <T , R > KProperty<DataRow<T>>.get (column : KProperty <DataFrame <R >>): FrameColumn <R > =
202
191
invoke()[column]
@@ -215,9 +204,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
215
204
* @throws [IllegalArgumentException] if the column is not found.
216
205
* @return The [DataColumn] these [KProperty Accessors][KProperty] point to.
217
206
*/
218
- @Deprecated(
219
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
220
- )
207
+ @Deprecated(DEPRECATED_ACCESS_API )
221
208
@AccessApiOverload
222
209
public operator fun <T , R > KProperty<T>.get (column : KProperty <R >): DataColumn <R > = invoke().asColumnGroup()[column]
223
210
@@ -235,9 +222,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
235
222
* @throws [IllegalArgumentException] if the column is not found.
236
223
* @return The [ColumnGroup] these [KProperty Accessors][KProperty] point to.
237
224
*/
238
- @Deprecated(
239
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
240
- )
225
+ @Deprecated(DEPRECATED_ACCESS_API )
241
226
@AccessApiOverload
242
227
public operator fun <T , R > KProperty<T>.get (column : KProperty <DataRow <R >>): ColumnGroup <R > =
243
228
invoke().asColumnGroup()[column]
@@ -256,9 +241,7 @@ public interface ColumnSelectionDsl<out T> : ColumnsContainer<T> {
256
241
* @throws [IllegalArgumentException] if the column is not found.
257
242
* @return The [FrameColumn] these [KProperty Accessors][KProperty] point to.
258
243
*/
259
- @Deprecated(
260
- " Recommended to migrate to use String or Extension properties API https://kotlin.github.io/dataframe/apilevels.html" ,
261
- )
244
+ @Deprecated(DEPRECATED_ACCESS_API )
262
245
@AccessApiOverload
263
246
public operator fun <T , R > KProperty<T>.get (column : KProperty <DataFrame <R >>): FrameColumn <R > =
264
247
invoke().asColumnGroup()[column]
0 commit comments