src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
/**
     * Extracts the commit log ID from filename
     *
     * @param   filename  the filename of the commit log file
     * @return the extracted commit log ID
     */
Extracts the commit log ID from filename
@param   filename  the filename of the commit log file
@return the extracted commit log ID
Extracts the commit log ID from filename @param filename the filename of the commit log file @return the extracted commit log ID
public static long idFromFilename(String filename)
    {
        Matcher matcher = COMMIT_LOG_FILE_PATTERN.matcher(filename);
        try
        {
            if (matcher.matches())
                return Long.valueOf(matcher.group(1));
            else
                return -1L;
        }
        catch (NumberFormatException e)
        {
            return -1L;
        }
    }
public static long idFromFilename ( String filename ) { Matcher matcher = COMMIT_LOG_FILE_PATTERN . matcher ( filename ) ; try { if ( matcher . matches ( ) ) return Long . valueOf ( matcher . group ( 1 ) ) ; else return - 1L ; } catch ( NumberFormatException e ) { return - 1L ; } }
Extracts the commit log ID from filename
 @param   filename  the filename of the commit log file
 @return the extracted commit log ID
Extracts the commit log ID from filename @param filename the filename of the commit log file @return the extracted commit log ID