Class Directories.SSTableLister

java.lang.Object
org.apache.cassandra.db.Directories.SSTableLister
Enclosing class:
Directories

public static class Directories.SSTableLister extends Object
  • Method Details

    • skipTemporary

      public Directories.SSTableLister skipTemporary(boolean b)
    • includeBackups

      public Directories.SSTableLister includeBackups(boolean b)
    • onlyBackups

      public Directories.SSTableLister onlyBackups(boolean b)
    • snapshots

      public Directories.SSTableLister snapshots(String sn)
    • list

      public Map<Descriptor,Set<Component>> list()
    • list

      public Map<Descriptor,Set<Component>> list(boolean includeForeignTables)
      This method is used upon SSTable importing (nodetool import) as there is no strict requirement to place SSTables in a directory structure where name of a directory equals to table name and parent of such directory equals to keyspace name. For such cases, we want to include such SSTables too, rendering the parameter to be set to true.
      Parameters:
      includeForeignTables - whether descriptors not matching metadata of this lister should be included
      Returns:
      found descriptors and related set of components
    • sortedList

      public List<Map.Entry<Descriptor,Set<Component>>> sortedList()
      Returns a sorted version of the list method. Descriptors are sorted by generation.
      Returns:
      a List of descriptors to their components.
    • listFiles

      public List<File> listFiles()
    • listFiles

      public List<File> listFiles(boolean includeForeignTables)