Class FieldMappingEngine

java.lang.Object
ecmwf.common.parser.mapping.FieldMappingEngine

public class FieldMappingEngine extends Object
FieldMappingEngine is responsible for inferring how raw input fields map to FileEntry attributes.

It supports multiple formats:

  • CSV (column-based inference)
  • JSON (field/path-based inference)
  • STAC (semantic JSON structure)
  • XML (node path inference)

This engine does NOT parse data itself; it only analyzes structure and produces a MappingSuggestion.

  • Constructor Details

    • FieldMappingEngine

      public FieldMappingEngine()
  • Method Details

    • infer

      public MappingSuggestion infer(String parserType, String sample)
      Main entry point for mapping inference.
      Parameters:
      parserType - detected format (csv/json/xml/stac/ftp/s3)
      sample - first lines or sample document