public class KeyspaceStoreFake extends Object implements ai.grakn.engine.KeyspaceStore
KeyspaceStore implementation, that follows the correct contract, but operates without a real
knowledge base.| Modifier and Type | Method and Description |
|---|---|
void |
addKeyspace(ai.grakn.Keyspace keyspace) |
void |
clear() |
boolean |
containsKeyspace(ai.grakn.Keyspace keyspace) |
boolean |
deleteKeyspace(ai.grakn.Keyspace keyspace) |
Set<ai.grakn.Keyspace> |
keyspaces() |
void |
loadSystemSchema() |
static KeyspaceStoreFake |
of(ai.grakn.Keyspace... keyspaces) |
public static KeyspaceStoreFake of(ai.grakn.Keyspace... keyspaces)
public boolean containsKeyspace(ai.grakn.Keyspace keyspace)
containsKeyspace in interface ai.grakn.engine.KeyspaceStorepublic boolean deleteKeyspace(ai.grakn.Keyspace keyspace)
deleteKeyspace in interface ai.grakn.engine.KeyspaceStorepublic Set<ai.grakn.Keyspace> keyspaces()
keyspaces in interface ai.grakn.engine.KeyspaceStorepublic void loadSystemSchema()
loadSystemSchema in interface ai.grakn.engine.KeyspaceStorepublic void addKeyspace(ai.grakn.Keyspace keyspace)
addKeyspace in interface ai.grakn.engine.KeyspaceStorepublic void clear()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.