[
https://issues.apache.org/jira/browse/IGNITE-7655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383379#comment-16383379
]
Akmal Chaudhri commented on IGNITE-7655:
----------------------------------------
[~vkulichenko], I am trying to take the existing Scala code example:
[https://github.com/apache/ignite/blob/master/examples/src/main/spark/org/apache/ignite/examples/spark/IgniteDataFrameExample.scala]
and rewrite it for Java. I am blocked here for the moment:
{code:java}
val igniteDF = spark.read
.format(FORMAT_IGNITE) //Data source type.
.option(OPTION_TABLE, "person") //Table to read.
.option(OPTION_CONFIG_FILE, CONFIG) //Ignite config.
.load()
.filter(col("id") >= 2) //Filter clause.
.filter(col("name") like "%M%") //Another filter clause.
{code}
The Java code to create the tables works ok. However, I don't know Scala, so
trying to do a conversion from one language to another is difficult.
> Spark Data Frames: saving data frames into Ignite needs to be documented
> ------------------------------------------------------------------------
>
> Key: IGNITE-7655
> URL: https://issues.apache.org/jira/browse/IGNITE-7655
> Project: Ignite
> Issue Type: Bug
> Components: documentation, spark
> Reporter: Nikolay Izhikov
> Assignee: Akmal Chaudhri
> Priority: Major
> Fix For: 2.4
>
>
> Once IGNITE-7337 is ready for merge.
> This new feature of Ignite needs to be documented.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)