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

ASF GitHub Bot commented on TINKERPOP3-886:
-------------------------------------------

Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/incubator-tinkerpop/pull/141#discussion_r44941599
  
    --- Diff: 
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java
 ---
    @@ -23,19 +23,21 @@
     import org.apache.tinkerpop.gremlin.TestHelper;
     import org.apache.tinkerpop.gremlin.process.traversal.P;
     import org.apache.tinkerpop.gremlin.structure.Edge;
    +import org.apache.tinkerpop.gremlin.structure.Graph;
     import org.apache.tinkerpop.gremlin.structure.Vertex;
    +import org.apache.tinkerpop.gremlin.structure.io.Io;
     import org.apache.tinkerpop.gremlin.structure.io.IoCore;
    +import org.apache.tinkerpop.gremlin.structure.io.IoRegistry;
     import org.apache.tinkerpop.gremlin.structure.io.IoTest;
     import org.junit.Ignore;
     import org.junit.Test;
     
    -import java.io.ByteArrayInputStream;
    -import java.io.ByteArrayOutputStream;
    -import java.io.File;
    +import java.io.*;
    --- End diff --
    
    not a big deal, but for future pull requests, note that for style purposes 
we don't use wildcard imports.


> Allow any GraphReader/Writer to be persistence engine for TinkerGraph 
> ----------------------------------------------------------------------
>
>                 Key: TINKERPOP3-886
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-886
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: tinkergraph
>    Affects Versions: 3.0.2-incubating
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>            Priority: Trivial
>
> TinkerGraph currently works with gryo, graphml and graphson - all internal 
> formats to TinkerPop.  This could easily be extended to work with any format 
> implementing the appropriate interfaces (i.e. also external third-party 
> formats) by allowing for the `gremlin.tinkergraph.graphFormat` setting for 
> TinkerGraph to be set to the existing three settings, but also allow for it 
> to be the fully qualified class name for a {{Io.Builder<I extends Io>}} 
> interface.  TinkerGraph could then dynamically instantiate this class (which 
> we can expect to have a zero-arg constructor) and use it to load/save data.  
> This might actually also clean up some of the existing code around load/save.



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

Reply via email to