@Override public void open(WriteConfiguration config) { metric = MetricManager.INSTANCE; super.open(config); }
@Override public synchronized Future<Message> add(StaticBuffer content, StaticBuffer key) { return add(content); }
public void printAllMetrics() { printAllMetrics(metricsPrefix); }
public Log openUserLog(String identifier) { return openLog(USER_LOG, GraphDatabaseConfiguration.USER_LOG_PREFIX +identifier); }
public void createExternalEdgeIndex(PropertyKey key, String backingIndex) { createExternalIndex(key,Edge.class,backingIndex); }
public TitanVertex getVertex(PropertyKey key, Object value) { return getVertex(tx,key,value); }
public void testLoadData() throws Exception { loadData(100000,2); }
public void verifyTypeCacheMetrics(int nameMisses, int relationMisses) { verifyTypeCacheMetrics(metricsPrefix,nameMisses,relationMisses); }
public static final TestConfigOption option(ConfigOption option, String... umbrella) { return new TestConfigOption(option,umbrella); }
public void verifyStoreMetrics(String storeName, Map<String, Long> operationCounts) { verifyStoreMetrics(storeName, metricsPrefix, operationCounts); }
public static void evaluateQuery(TitanGraphQuery query, ElementCategory resultType, int expectedResults, boolean[] subQuerySpecs, PropertyKey orderKey1, Order order1, PropertyKey orderKey2, Order order2, String... intersectingIndexes) { evaluateQuery(query, resultType, expectedResults, subQuerySpecs, ImmutableMap.of(orderKey1, order1, orderKey2, order2), intersectingIndexes); }
@Override public synchronized Log openLog(String name) throws BackendException { TestLog log = openLogs.get(name); if (log==null) { log = new TestLog(name); openLogs.put(name,log); } return log; }
/** * Create a vertex with an indexed property and commit. Open two new * transactions; delete vertex in one and modify the property in the other, * then commit in the same order. Neither commit throws an exception. */ @Test public void testDeleteVertexThenModifyProperty() throws BackendException { testNestedWrites("x", "y"); }
@Override public WriteConfiguration getConfiguration() { WriteConfiguration config = getBaseConfiguration(); ModifiableConfiguration mconf = new ModifiableConfiguration(GraphDatabaseConfiguration.ROOT_NS,config, BasicConfiguration.Restriction.NONE); mconf.set(BASIC_METRICS,true); mconf.set(METRICS_MERGE_STORES,false); mconf.set(PROPERTY_PREFETCHING,false); mconf.set(DB_CACHE, false); return config; }
@Override protected SpeedTestSchema getSchema() { if (null == schema) { schema = SpeedTestSchema.get(); } return schema; } }
public Log openTxLog() { return openLog(TRANSACTION_LOG, Backend.SYSTEM_TX_LOG_NAME); }
public void createExternalVertexIndex(PropertyKey key, String backingIndex) { createExternalIndex(key,Vertex.class,backingIndex); }
public TitanVertex getVertex(String key, Object value) { return getVertex(tx,key,value); }