You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto type conversion in py4j for primitive types are very convenient when calling methods.
But, when Java methods has arrays as the parameters, I have to manually create the array using new_array from Python list or some iterables.
It drives me crazy when I need to write codes for many (tens or hundreds) such methods.
I was trying to write a general conversion from Python list to Java array, but found the type matching are very complex without reflection.
So any good ideas to do this conversion automatically?
The text was updated successfully, but these errors were encountered:
The auto type conversion in py4j for primitive types are very convenient when calling methods.
But, when Java methods has arrays as the parameters, I have to manually create the array using
new_array
from Python list or some iterables.It drives me crazy when I need to write codes for many (tens or hundreds) such methods.
I was trying to write a general conversion from Python list to Java array, but found the type matching are very complex without reflection.
So any good ideas to do this conversion automatically?
The text was updated successfully, but these errors were encountered: