public class GraqlShell extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableList<String> |
COMMANDS
Array of available commands in shell
|
| Constructor and Description |
|---|
GraqlShell(String historyFilename,
Grakn client,
ai.grakn.Keyspace keyspace,
jline.console.ConsoleReader console,
PrintStream serr,
OutputFormat outputFormat,
boolean infer)
Create a new Graql shell
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
errorOccurred() |
static String |
loadQuery(Path filePath) |
void |
start(List<String> queryStrings) |
public static final com.google.common.collect.ImmutableList<String> COMMANDS
public GraqlShell(String historyFilename, Grakn client, ai.grakn.Keyspace keyspace, jline.console.ConsoleReader console, PrintStream serr, OutputFormat outputFormat, boolean infer) throws IOException
IOExceptionpublic static String loadQuery(Path filePath) throws IOException
IOExceptionpublic void start(@Nullable List<String> queryStrings) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic boolean errorOccurred()
public final void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2018 Grakn Labs Ltd. All rights reserved.