flush

fun flush()

Writes all in-memory segments to the Directory.