Class JsonPatternBasedDiscovery

  • All Implemented Interfaces:
    TextRecordDiscoverer

    public class JsonPatternBasedDiscovery
    extends PatternBasedDiscovery
    Discovers a schema for JSON text by checking values against the discovered JSON types and various regular expressions which map to data types.
    • Constructor Detail

      • JsonPatternBasedDiscovery

        public JsonPatternBasedDiscovery()
      • JsonPatternBasedDiscovery

        public JsonPatternBasedDiscovery​(List<TypePattern> patterns)
    • Method Detail

      • convertJsonAnalysis

        public static List<List<String>> convertJsonAnalysis​(List<String> fieldNames,
                                                             List<com.fasterxml.jackson.databind.JsonNode> recordData)
      • convertJsonAnalysis

        public static List<List<String>> convertJsonAnalysis​(List<String> fieldNames,
                                                             List<com.fasterxml.jackson.databind.JsonNode> recordData,
                                                             String nullIndicator)