public Segment flush(){
  buffer.flush();
  offsetIndex.flush();
  return this;
}

public Segment flush ( ) { buffer . flush ( ) ; offsetIndex . flush ( ) ; return this ; }
flushes the segment buffers to disk .
