checkIndex
Returns a Status instance detailing the state of the index.
As this method checks every byte in the index, on a large index it can take quite a long time to run.
WARNING: make sure you only call this when the index is not opened by any writer.
fun checkIndex(onlySegments: MutableList<String>?, executorService: ExecutorService?): CheckIndex.Status
Returns a Status instance detailing the state of the index.
This method allows caller to pass in customized ExecutorService to speed up the check.
WARNING: make sure you only call this when the index is not opened by any writer.