Dummy Product Abstract Extractor¶
Generates dummy product data and returns structured rows. Supports bulk extraction, localization, and store mappings.
Configuration¶
Name |
Type |
Description |
|---|---|---|
|
Attribute |
Total number of products to generate |
|
Attribute |
Number of locales for localized product descriptions (default: 1) |
|
Attribute |
Number of attributes assigned to each product (default: 5) |
|
Attribute |
Number of stores where the product is available (default: 1) |
|
Attribute |
Number of products extracted in each batch (default: 100) |
Example¶
Input data¶
N/A (Data is dynamically generated based on configuration.)
Pipeline configuration¶
<dummy-product-abstract numberOfProducts="100" numberOfLocales="5" numberOfAttributes="10" numberOfStores="3" bulkSize="20" />
Output data¶
sku |
localized |
storeIds |
attributes |
|---|---|---|---|
SKU_0 |
{} |
[1, 2] |
{“attribute_0”: “Attribute value 0”, “attribute_1”: “Attribute value 1”} |
SKU_1 |
{} |
[1, 2] |
{“attribute_0”: “Attribute value 0”, “attribute_1”: “Attribute value 1”} |
Error Handling¶
Error |
Description |
|---|---|
Incorrect Configuration |
Throws an exception if the number of products or other attributes are negative. |
Incorrect Attribute Format |
JSON encoding errors may occur if attributes are improperly formatted. |
Bulk Processing Issues |
If |
Performance Considerations¶
Consideration |
Description |
|---|---|
Use an appropriate ``bulkSize`` |
Small sizes improve memory efficiency but increase processing time. |
Ensure attribute encoding is valid JSON |
Avoids issues with data parsing. |
Validate all parameters before execution |
Prevents runtime exceptions. |
Key Features¶
Feature |
Description |
|---|---|
Supports Bulk Product Extraction |
Handles large datasets efficiently. |
Generates Localized Product Data |
Supports multiple locales dynamically. |
Maps Products to Stores |
Automatically assigns store IDs. |
Processes Data in Chunks |
Uses generators for optimized memory usage. |
Flexible Attribute Handling |
Dynamically creates product attributes. |