Hi everybody,
I am trying to call function "parquet" on the var "inp-rdr-s". From the
following reflection output using clojure.reflect, it is clear that the
method parquet exists. However I am unable to call the function. Can
somebody help?
Thanks and regards,
Sunil
bidland.core> (def parq-path
"/home/hdfs/sunil/dl4j/bidland/tmp/sunil-bidland-data/part-r-00000.parquet")
#'bidland.core/parq-path
bidland.core> (pp/pprint (filter #(= 'parquet (:name %)) (:members
(r/reflect (class inp-rdr-s)))))
({:name parquet,
:return-type org.apache.spark.sql.DataFrame,
:declaring-class org.apache.spark.sql.DataFrameReader,
:parameter-types [java.lang.String<>],
:exception-types [],
:flags #{:varargs :public}}
{:name parquet,
:return-type org.apache.spark.sql.DataFrame,
:declaring-class org.apache.spark.sql.DataFrameReader,
:parameter-types [scala.collection.Seq],
:exception-types [],
:flags #{:public}})
nil
bidland.core> (. inp-rdr-s (parquet parq-path))
IllegalArgumentException No matching method found: parquet for class
org.apache.spark.sql.DataFrameReader
clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:80)
bidland.core>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.