writes indexfilenames #segments_gen file to the directory , readingthe generation from the given segmentsfile . if it is null , this method deletes segments.gen from the directory . concode_field_sep InfoStream infoStream concode_elem_sep Callable<Boolean> callback concode_elem_sep String INFO_STREAM_COMPONENT concode_elem_sep Map<String,List<RevisionFile>> currentRevisionFiles concode_elem_sep String currentVersion concode_elem_sep Directory indexDir concode_field_sep void setInfoStream concode_elem_sep void cleanupOldIndexFiles concode_elem_sep String getSegmentsFile concode_elem_sep void revisionReady concode_elem_sep Map<String,List<RevisionFile>> currentRevisionFiles concode_elem_sep IndexCommit getLastCommit concode_elem_sep void copyFiles concode_elem_sep void cleanupFilesOnFailure concode_elem_sep String currentVersion
void function ( String arg0 , Directory arg1 ) { if ( arg0 != null ) { SegmentInfos . writeSegmentsGen ( arg1 , SegmentInfos . generationFromSegmentsFileName ( arg0 ) ) ; } else { try { arg1 . deleteFile ( IndexFileNames . SEGMENTS_GEN ) ; } catch ( Throwable loc1 ) { } } }