Interface SSTableCollector

  • All Known Implementing Classes:
    SSTableLister

    public interface SSTableCollector
    Collect SSTables from listing the included directories
    • Method Detail

      • includeDirectory

        void includeDirectory​(java.nio.file.Path dir)
        Include sstables under the directory
        Parameters:
        dir - directory that contains sstables
      • includeSSTable

        void includeSSTable​(java.util.List<java.nio.file.Path> sstableComponents)
        Include the sstable components of an individual SSTable
        Parameters:
        sstableComponents - sstable components
      • includeFileDigests

        void includeFileDigests​(java.util.Map<java.nio.file.Path,​Digest> fileDigests)
        Include the digests of the files
        Parameters:
        fileDigests - digest of the files
      • fileDigests

        java.util.Map<java.nio.file.Path,​Digest> fileDigests​(java.util.Set<java.nio.file.Path> files)
        Get the file digests of the input files
        Parameters:
        files - files to gather the digests
        Returns:
        file digests of the input files
      • totalSize

        long totalSize()
        Returns:
        total size of all sstables included
      • isEmpty

        boolean isEmpty()
        Returns:
        true if the collector is empty; otherwise, false