src/java/org/apache/cassandra/io/sstable/SSTable.java
/**
     * @return A Descriptor,Component pair, or null if not a valid sstable component.
     */
@return A Descriptor,Component pair, or null if not a valid sstable component.
@return A Descriptor Component pair or null if not a valid sstable component .
public static Pair<Descriptor,Component> tryComponentFromFilename(File dir, String name)
    {
        try
        {
            return Component.fromFilename(dir, name);
        }
        catch (Exception e)
        {
            if (!"snapshots".equals(name) && !"backups".equals(name)
                    && !name.contains(".json"))
                logger.warn("Invalid file '{}' in data directory {}.", name, dir);
            return null;
        }
    }
public static Pair < Descriptor , Component > tryComponentFromFilename ( File dir , String name ) { try { return Component . fromFilename ( dir , name ) ; } catch ( Exception e ) { if ( ! "snapshots" . equals ( name ) && ! "backups" . equals ( name ) && ! name . contains ( ".json" ) ) logger . warn ( "Invalid file '{}' in data directory {}." , name , dir ) ; return null ; } }
@return A Descriptor,Component pair, or null if not a valid sstable component.
@return A Descriptor Component pair or null if not a valid sstable component .