You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2016/11/02 08:41:58 UTC

[jira] [Comment Edited] (JENA-1233) Make RDF primitives Serializable

    [ https://issues.apache.org/jira/browse/JENA-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15626907#comment-15626907 ] 

Andy Seaborne edited comment on JENA-1233 at 11/2/16 8:41 AM:
--------------------------------------------------------------

Did the serialization wrappers {{SNode}}, {{STriple}} and {{SQuad}} help?

If they did, we could add "Serializable" with these implementations to Jena itself.


was (Author: andy.seaborne):
Did the serialization wrappers {{SNode}}, {{STriple}} and {{SQuad}} help?

If they did, we could add "Serialziable" with these implementations to Jena itself.

> Make RDF primitives Serializable
> --------------------------------
>
>                 Key: JENA-1233
>                 URL: https://issues.apache.org/jira/browse/JENA-1233
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Elephas
>    Affects Versions: Jena 3.1.0
>            Reporter: Itsuki Toyota
>
> I always use Jena when I handle RDF data with Apache Spark.
> However, when I want to store resulting RDD data (ex. RDD[Triple]) in binary format, I can't call RDD.saveAsObjectFile method.
> It's because RDD.saveAsObjectFile requires java.io.Serializable interface.
> See the following code. 
> https://github.com/apache/spark/blob/v1.6.0/core/src/main/scala/org/apache/spark/rdd/RDD.scala#L1469
> https://github.com/apache/spark/blob/v1.6.0/core/src/main/scala/org/apache/spark/util/Utils.scala#L79-L86
> You can see that 
> 1) RDD.saveAsObjectFile calls Util.serialize method
> 2) Util.serialize method requires the RDD-wrapped object implementing java.io.Serializable interface. For example, if you want to save a RDD[Triple] object, Triple must implements java.io.Serializable.
> So why not implement java.io.Serializable ?
> I think it will improve the usability in Apache Spark.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)