java.lang.Object
eu.steffo.cleaver.logic.split.SplitConfig
- Direct Known Subclasses:
MergeConfig
,SplitByPartsConfig
,SplitBySizeConfig
public abstract class SplitConfig extends Object
A class containing the configuration for the split/merge step of a
Job
.-
Constructor Summary
Constructors Constructor Description SplitConfig()
-
Method Summary
Modifier and Type Method Description abstract int
getPartCount()
abstract long
getPartSize()
abstract long
getTotalSize()
Element
toElement(Document doc)
Create aElement
representing this SplitConfig (to be used in *.chp metadata files).abstract String
toString()
-
Constructor Details
-
SplitConfig
public SplitConfig()
-
-
Method Details
-
toElement
Create aElement
representing this SplitConfig (to be used in *.chp metadata files). -
getPartSize
public abstract long getPartSize()- Returns:
- The size in bytes of a single part of the file.
-
getPartCount
public abstract int getPartCount()- Returns:
- The number of parts the file should be split in.
-
getTotalSize
public abstract long getTotalSize()- Returns:
- The total size of the original file.
-
toString
- Overrides:
toString
in classObject
- Returns:
- The string representation of the
SplitConfig
, to be used in the jobs table. - See Also:
JobsTablePanel
-