Class FileUtils.FileCopyResult
java.lang.Object
org.apache.druid.java.util.common.FileUtils.FileCopyResult
- Enclosing class:
- FileUtils
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddFiles(Collection<File> files) protected voidaddSizedFiles(Collection<File> files) getFiles()longsize()
-
Constructor Details
-
FileCopyResult
-
FileCopyResult
-
-
Method Details
-
getFiles
-
size
public long size() -
addSizedFiles
-
addFiles
-
addFile
-