Modifier and Type | Method and Description |
---|---|
boolean |
doIndex()
Carryout the Language Server Index.
|
static LSIndexImpl |
getInstance() |
LSIndexQueryProcessor |
getQueryProcessor()
Get the Query Processor Instance.
|
void |
init(Connection connection)
Init the Lang server Index with the index DB connection.
|
boolean |
initFromIndexDump(String indexDumpPath)
Load the index from a dump index database.
|
boolean |
loadIndexSchema()
Load the index database schema from the disk.
|
boolean |
reIndex()
Re-Index the Language server index.
|
boolean |
saveIndexDump(Path path)
Save the current in-memory index to a given file location.
|
public static LSIndexImpl getInstance()
public void init(Connection connection)
connection
- Connection to the index dbpublic boolean initFromIndexDump(String indexDumpPath)
initFromIndexDump
in interface LSIndex
indexDumpPath
- Path to the Index DumpBoolean
Whether the index loading is successful or notpublic boolean loadIndexSchema()
loadIndexSchema
in interface LSIndex
Boolean
Whether the index schema loading is successful or notpublic boolean reIndex()
public boolean doIndex()
public boolean saveIndexDump(Path path)
saveIndexDump
in interface LSIndex
path
- File path to save the index dumpBoolean
Whether the save process is success or notpublic LSIndexQueryProcessor getQueryProcessor()
LSIndexQueryProcessor
Index Query Processor InstanceCopyright © 2018 WSO2. All rights reserved.