-
Notifications
You must be signed in to change notification settings - Fork 72
Add some AccessApiOverload annotations #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5d55adf
to
3769ca2
Compare
@@ -34,6 +34,7 @@ public interface SortDsl<out T> : ColumnsSelectionDsl<T> { | |||
|
|||
public fun String.desc(): SingleColumn<Comparable<*>?> = invoke<Comparable<*>>().desc() | |||
|
|||
@AccessApiOverload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we also deprecating extension functions on KProperty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least those from different column selection DSLs
Do you actually also run a test somewhere to check whether the minimized dataframe-core still compiles? It could be that we use our public api somewhere internally |
@@ -28,13 +28,16 @@ public interface DataRow<out T> { | |||
|
|||
public operator fun <R> get(expression: RowExpression<T, R>): R = expression(this, this) | |||
|
|||
@AccessApiOverload | |||
public operator fun <R> get(column: ColumnReference<R>): R |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm maybe not exclude these ones yet? Let's say we have a DataRow<Any>
, calling row["name"]
provides no way of specifying the type. You can however do row[column<String>("name")]
to get the type. (potentially even row["name"<String>()]
) It would also suffice if we could get a typed row.get<String>("name")
function I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related to #553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have row.getValue<String>("name")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah didn't notice it, as it was an extension function, great :)
We use it, but it still compiles |
oh right, you only change visibility, very cool :) |
No description provided.