code: func NewSegmentWriteStateFrom(state *SegmentWriteState,
  	segmentSuffix string) *SegmentWriteState {
  
  	return &SegmentWriteState{
  		state.infoStream,
  		state.Directory,
  		state.SegmentInfo,
  		state.FieldInfos,
  		state.DelCountOnFlush,
  		state.SegUpdates,
  		nil,
  		segmentSuffix,
  		state.termIndexInterval,
  		state.Context,
  	}
  }
docs: /* Create a shallow copy of SegmentWriteState with a new segment suffix. */