[ 
https://issues.apache.org/jira/browse/TINKERPOP3-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marko A. Rodriguez closed TINKERPOP3-703.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0.GA

This was super easy and super useful.

> Provide a "INPUT_GRAPH_RDD_CLASS" for SparkGraphComputer vendors.
> -----------------------------------------------------------------
>
>                 Key: TINKERPOP3-703
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-703
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: hadoop
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.0.0.GA
>
>
> If a vendor has a direct Spark connector to their database, then they should 
> be able to bypass using an {{InputFormat}} to construct the {{graphRDD}}. It 
> would be cool to have a configuration option that is 
> {{INPUT_GRAPH_RDD_CLASS}}.
> {code}
> Class<BiFunction<SparkContext,Configuration,JavaPairRDD<Object,VertexWritable>>
> {code}
> This way, the SparkGraphComputer code would be like:
> {code}
> if(configuration.hasProperty(INPUT_GRAPH_RDD_CLASS)) {
>  
> Class<BiFunction<SparkContext,Configuration,JavaPairRDD<Object,VertexWritable>>
>  theClass = 
> Class.forName(configuration.get(INPUT_GRAPH_RDD_CLASS)).newInstance();
>   graphRDD = theClass.apply(sparkContext,configuration);
> } else {
>   graphRDD = // use input format
> }
> {code}



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

Reply via email to