flush

fun flush(state: SegmentWriteState, sortMap: Sorter.DocMap?)