String namedForThisSegment(String file){
  return name + IndexFileNames.stripSegmentName(file);
}

String namedForThisSegment ( String file ) { return name + IndexFileNames . stripSegmentName ( file ) ; }
strips any segment name from the file , naming it with this segment this is because " segment names " can change , e . g . by addindexes ( dir )
