java.lang.Object
eu.steffo.cleaver.logic.split.SplitConfig
eu.steffo.cleaver.logic.split.MergeConfig
public class MergeConfig extends SplitConfig
A
SplitConfig
created by reading a *.chp file, containing the number of parts and their size, but not the resulting file size.-
Field Summary
-
Constructor Summary
Constructors Constructor Description MergeConfig(long partSize, int parts, long totalSize)
Construct a new MergeConfig. -
Method Summary
Modifier and Type Method Description int
getPartCount()
long
getPartSize()
long
getTotalSize()
String
toString()
-
Field Details
-
Constructor Details
-
MergeConfig
public MergeConfig(long partSize, int parts, long totalSize)Construct a new MergeConfig.- Parameters:
partSize
- The size of the parts the file was split in.parts
- The number of parts the file was split in.totalSize
- The total size of the original file.
-
-
Method Details
-
getPartSize
public long getPartSize()- Specified by:
getPartSize
in classSplitConfig
- Returns:
- The size in bytes of a single part of the file.
-
getPartCount
public int getPartCount()- Specified by:
getPartCount
in classSplitConfig
- Returns:
- The number of parts the file should be split in.
-
getTotalSize
public long getTotalSize()- Specified by:
getTotalSize
in classSplitConfig
- Returns:
- The total size of the original file.
-
toString
- Specified by:
toString
in classSplitConfig
- Returns:
- The string representation of the
SplitConfig
, to be used in the jobs table. - See Also:
JobsTablePanel
-