finish

fun finish(metaOut: IndexOutput, indexOut: IndexOutput, dataOut: IndexOutput): IORunnable?

Writes the BKD tree to the provided IndexOutputs and returns a Runnable that writes the index of the tree if at least one point has been added, or null otherwise.