Class FileUtils.FileCopyResult

java.lang.Object
org.apache.druid.java.util.common.FileUtils.FileCopyResult
Enclosing class:
FileUtils

public static class FileUtils.FileCopyResult extends Object
Keeps results of a file copy, including children and total size of the resultant files. This class is NOT thread safe. Child size is eagerly calculated and any modifications to the file after the child is added are not accounted for. As such, this result should be considered immutable, even though it has no way to force that property on the files.
  • Constructor Details

    • FileCopyResult

      public FileCopyResult(File... files)
    • FileCopyResult

      public FileCopyResult(Collection<File> files)
  • Method Details

    • getFiles

      public Collection<File> getFiles()
    • size

      public long size()
    • addSizedFiles

      protected void addSizedFiles(Collection<File> files)
    • addFiles

      public void addFiles(Collection<File> files)
    • addFile

      public void addFile(File file)