aistore.sdk.dsort.framework
Module Contents
Classes
API
Bases: BaseModel
Represents the algorithm used in a Dsort job
Converts the DsortAlgorithm instance to a dictionary representation
Validates required key fields
Represents the framework for a dSort job, including input and output shard configurations.
Class method to create a DsortFramework instance from a JSON or YAML file
Parameters:
The path to the JSON or YAML file containing the specification
Returns:
An instance of the DsortFramework class
Raises:
ValueError: If the file extension is not .json, .yml, or .yaml
Converts the DsortFramework instance to a dictionary representation for use in dSort job specification
Returns:
Dictionary representation of dSort specification
Represents the configuration for the input or output of a shard group in a dSort job
Converts the DsortShardsGroup instance to a dictionary representation