Hi,
JavaObject are not intended to be used directly, unless you want to
extend Py4J in some ways.
The ids are provided by the Gateway on the java side and are available
by calling Gateway.getBindings().
JavaObject instances are created when Java objects are accessed. e.g.,:
# in python
my_random = gateway.jvm.java.util.Random()
my_random is now a JavaObject instance and an id was generated for it.
Hope this helps,
Barthélémy
On 12/13/2011 02:46 PM, Aaron Elder wrote:
> I'm new to Java, so I apoligize if my question is dumb. In the py4j
> docs, section 4.1.5 JavaObject it mentions one of the parameters it
> needs is the target_id for the object from the jvm. Is there an easy way
> to get a list of these target_ids from the jvm?
>
> Thanks,
> Aaron
>
>
> ------------------------------------------------------------------------------
> Cloud Computing - Latest Buzzword or a Glimpse of the Future?
> This paper surveys cloud computing today: What are the benefits?
> Why are businesses embracing it? What are its payoffs and pitfalls?
> http://www.accelacomm.com/jaw/sdnl/114/51425149/
>
>
>
> _______________________________________________
> Py4j-users mailing list
> Py4...@li...
> https://lists.sourceforge.net/lists/listinfo/py4j-users
|