private static void assertStorageExists(Backend backend, boolean exists) throws Exception { final String suffix = exists ? "should exist before clearing" : "should not exist after clearing"; assertTrue("graph " + suffix, backend.getStoreManager().exists() == exists); for (final IndexInformation index : backend.getIndexInformation().values()) { assertTrue("index " + suffix, ((IndexProvider) index).exists() == exists); } }
StoreFeatures storeFeatures = backend.getStoreFeatures(); this.indexSerializer = new IndexSerializer(configuration.getConfiguration(), this.serializer, this.backend.getIndexInformation(), storeFeatures.isDistributed() && storeFeatures.isKeyOrdered()); this.edgeSerializer = new EdgeSerializer(this.serializer); this.vertexExistenceQuery = edgeSerializer.getQuery(BaseKey.VertexExists, Direction.OUT, new EdgeSerializer.TypedInterval[0]).setLimit(1);