Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File Source

This example demonstrates file-based data source ingestion for batch processing scenarios.

Purpose

Validate the ability to:

  • Read input data from local files
  • Process data through WPL parsing rules
  • Route parsed data to configured sinks
  • Handle file-based batch processing workflows

Features Validated

FeatureDescription
File SourceReading data from local file system
Batch ProcessingProcessing files in batch mode
Data RoutingRouting parsed data to business/infra sinks

Quick Start

cd core/file_source
./run.sh

Directory Structure

file_source/
├── conf/wparse.toml       # Main configuration
├── models/
│   ├── wpl/               # Parsing rules
│   ├── sinks/             # Sink routing
│   └── sources/           # File source config
└── data/
    ├── in_dat/            # Input files
    └── out_dat/           # Output files

FileSource (中文)

本用例演示基于文件的数据源输入场景,适用于批处理工作流。