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 Summary
Constructors Constructor Description FileCopyResult(File... files)
FileCopyResult(Collection<File> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFile(File file)
void
addFiles(Collection<File> files)
protected void
addSizedFiles(Collection<File> files)
Collection<File>
getFiles()
long
size()
-
-
-
Constructor Detail
-
FileCopyResult
public FileCopyResult(File... files)
-
FileCopyResult
public FileCopyResult(Collection<File> files)
-
-
Method Detail
-
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)
-
-