當前位置: 首頁>>代碼示例>>Java>>正文


Java GraphManager類代碼示例

本文整理匯總了Java中org.apache.tinkerpop.gremlin.GraphManager的典型用法代碼示例。如果您正苦於以下問題:Java GraphManager類的具體用法?Java GraphManager怎麽用?Java GraphManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GraphManager類屬於org.apache.tinkerpop.gremlin包,在下文中一共展示了GraphManager類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupTest

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
@Before
public void setupTest() {
    assumeTrue(graphMeetsTestRequirements());

    try {
        // ignore tests that aren't supported by a specific TraversalEngine
        final String testName = name.getMethodName();

        // tests that are parameterized have a square bracket with parameterized name appended to the actual
        // test method name. have to strip that off so that reflection can find it
        final String methodName = testName.contains("[") ? testName.substring(0, testName.indexOf('[')) : testName;
        final IgnoreEngine ignoreEngine = this.getClass().getMethod(methodName).getAnnotation(IgnoreEngine.class);
        if (ignoreEngine != null)
            assumeTrue(String.format("This test is ignored for %s", ignoreEngine.value()), !ignoreEngine.value().equals(GraphManager.getTraversalEngineType()));
    } catch (NoSuchMethodException nsme) {
        // some tests are parameterized
        throw new RuntimeException(String.format("Could not find test method %s in test case %s", name.getMethodName(), this.getClass().getName()));
    }
}
 
開發者ID:PKUSilvester,項目名稱:LiteGraph,代碼行數:20,代碼來源:AbstractGremlinProcessTest.java

示例2: unloadSugar

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
private void unloadSugar() {
    try {
        SugarTestHelper.clearRegistry(GraphManager.getGraphProvider());
    } catch (Exception ex) {
        throw new RuntimeException(ex);
    }
}
 
開發者ID:PKUSilvester,項目名稱:LiteGraph,代碼行數:8,代碼來源:GroovyProcessComputerSuite.java

示例3: hasGraphComputerRequirement

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
/**
 * Determines if this test suite has "computer" requirements.
 */
protected boolean hasGraphComputerRequirement() {
    // do the negation of STANDARD as we expect a future type of REASONING that would infer COMPUTER support
    return !GraphManager.getTraversalEngineType().equals(TraversalEngine.Type.STANDARD);
}
 
開發者ID:PKUSilvester,項目名稱:LiteGraph,代碼行數:8,代碼來源:AbstractGremlinProcessTest.java

示例4: TemporaryTests

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
public TemporaryTests() throws Exception {
    GraphManager.setGraphProvider(new RestGraphProvider());
}
 
開發者ID:unipop-graph,項目名稱:unipop,代碼行數:4,代碼來源:TemporaryTests.java

示例5: Misc

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
public Misc() throws Exception {
    GraphManager.setGraphProvider(new IntegrationGraphProvider());
}
 
開發者ID:unipop-graph,項目名稱:unipop,代碼行數:4,代碼來源:Misc.java

示例6: MultiFieldTests

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
public MultiFieldTests() throws Exception {
    GraphManager.setGraphProvider(new ElasticGraphProvider());
}
 
開發者ID:unipop-graph,項目名稱:unipop,代碼行數:4,代碼來源:MultiFieldTests.java

示例7: TempTests

import org.apache.tinkerpop.gremlin.GraphManager; //導入依賴的package包/類
public TempTests() throws SQLException, ClassNotFoundException {
    GraphManager.setGraphProvider(new JdbcGraphProvider());
}
 
開發者ID:unipop-graph,項目名稱:unipop,代碼行數:4,代碼來源:TempTests.java


注:本文中的org.apache.tinkerpop.gremlin.GraphManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。