public static final String constructFilenameForTable ( Table table , String fileNonce , SnapshotFormat format , int hostId ) { String extension = ".vpt" ; if ( format == SnapshotFormat . CSV ) { extension = ".csv" ; } StringBuilder filename_builder = new StringBuilder ( fileNonce ) ; filename_builder . append ( "-" ) ; filename_builder . append ( table . getTypeName ( ) ) ; if ( ! table . getIsreplicated ( ) ) { filename_builder . append ( "-host_" ) ; filename_builder . append ( hostId ) ; } filename_builder . append ( extension ) ; //Volt partitioned table return filename_builder . toString ( ) ; }
Generates a Filename to the snapshot file for the given table .