public class Autocomplete extends Object
| Modifier and Type | Method and Description |
|---|---|
static Autocomplete |
create(GraknGraph graph,
String query,
int cursorPosition) |
Set<String> |
getCandidates() |
int |
getCursorPosition() |
public static Autocomplete create(GraknGraph graph, String query, int cursorPosition)
graph - the graph to find types inquery - the query to autocompletecursorPosition - the cursor position in the querypublic int getCursorPosition()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.