| Package | Description |
|---|---|
| ai.grakn.exception |
Grakn exception definitions.
|
| ai.grakn.graql |
A collection of interfaces and factories for executing Graql queries.
|
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.template | |
| ai.grakn.graql.internal.template.macro | |
| ai.grakn.migration.base |
Base migration package, which implements command line options and base interfaces for importing data into Grakn.
|
| Modifier and Type | Method and Description |
|---|---|
static GraqlQueryException |
GraqlQueryException.wrongMacroArgumentType(Macro macro,
String expectedType,
String value) |
static GraqlQueryException |
GraqlQueryException.wrongNumberOfMacroArguments(Macro macro,
List<Object> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilder.registerMacro(Macro macro)
Register a macro that can be used when parsing a Graql template
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilderImpl.registerMacro(Macro macro) |
| Modifier and Type | Method and Description |
|---|---|
void |
TemplateParser.registerMacro(Macro macro)
Register a macro that can be used in any template parsed by this class.
|
| Constructor and Description |
|---|
TemplateVisitor(org.antlr.v4.runtime.CommonTokenStream tokens,
Map<String,Object> context,
Map<String,Macro<?>> macros) |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanMacro
Templating function that will convert the given value into a boolean (true/false).
|
class |
ConcatMacro
Concatenate all of the given values to a string.
|
class |
DateMacro
Parse the given value (arg1) using the format (arg2).
|
class |
DoubleMacro
Convert the given value into a boolean (true/false).
|
class |
EqualsMacro
Compares the given values.
|
class |
IntMacro
Convert the given value into an integer.
|
class |
LongMacro
Convert the given value into a long.
|
class |
LowerMacro
Convert the given value into an lower case string.
|
class |
NoescpMacro
Convert the given value into an unescaped.
|
class |
SplitMacro
Templating function that splits the given value based on the given character.
|
class |
StringMacro
Convert the given value into a quoted string.
|
class |
UpperMacro
Convert the given value into an upper case string.
|
| Modifier and Type | Method and Description |
|---|---|
Migrator |
Migrator.registerMacro(Macro macro)
Register a macro to use in templating
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.