Do you mean replacing the current segments with a new set of segments?
Pinot automatically replaces the segment with the same name when a new segment is pushed. One approach is to replace segment one by one with the segment of the same name.
We are also working on a feature to do atomic batch replacement