src/java/org/apache/cassandra/db/Directories.java
// This function always return false since accepts adds to the components map
This function always return false since accepts adds to the components map
This function always return false since accepts adds to the components map
public boolean accept(File file)
                {
                    if (file.isDirectory() || !file.getName().startsWith(sstablePrefix))
                        return false;
                    Pair<Descriptor, Component> pair = SSTable.tryComponentFromFilename(file.getParentFile(), file.getName());
                    if (pair == null)
                        return false;
                    if (skipCompacted && new File(pair.left.filenameFor(Component.COMPACTED_MARKER)).exists())
                        return false;
                    if (skipTemporary && pair.left.temporary)
                        return false;
                    Set<Component> previous = components.get(pair.left);
                    if (previous == null)
                    {
                        previous = new HashSet<Component>();
                        components.put(pair.left, previous);
                    }
                    previous.add(pair.right);
                    nbFiles++;
                    return false;
                }
public boolean accept ( File file ) { if ( file . isDirectory ( ) || ! file . getName ( ) . startsWith ( sstablePrefix ) ) return false ; Pair < Descriptor , Component > pair = SSTable . tryComponentFromFilename ( file . getParentFile ( ) , file . getName ( ) ) ; if ( pair == null ) return false ; if ( skipCompacted && new File ( pair . left . filenameFor ( Component . COMPACTED_MARKER ) ) . exists ( ) ) return false ; if ( skipTemporary && pair . left . temporary ) return false ; Set < Component > previous = components . get ( pair . left ) ; if ( previous == null ) { previous = new HashSet < Component > ( ) ; components . put ( pair . left , previous ) ; } previous . add ( pair . right ) ; nbFiles ++ ; return false ; }
This function always return false since accepts adds to the components map
This function always return false since accepts adds to the components map
// we are only interested in the SSTable files that belong to the specific ColumnFamily