java.lang.Object
eu.steffo.cleaver.logic.split.SplitConfig
eu.steffo.cleaver.logic.split.SplitByPartsConfig
public class SplitByPartsConfig extends SplitConfig
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SplitByPartsConfig(int parts, long totalSize)
Construct a new SplitByPartsConfig. -
Method Summary
Modifier and Type Method Description int
getPartCount()
long
getPartSize()
long
getTotalSize()
String
toString()
-
Field Details
-
Constructor Details
-
SplitByPartsConfig
public SplitByPartsConfig(int parts, long totalSize)Construct a new SplitByPartsConfig.- Parameters:
parts
- The number of parts the file should be split in.totalSize
- The total size of the file to split.
-
-
Method Details
-
toString
- Specified by:
toString
in classSplitConfig
- Returns:
- The string representation of the
SplitConfig
, to be used in the jobs table. - See Also:
JobsTablePanel
-
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.
-