- java.lang.Object
-
- com.pervasive.datarush.schema.PatternBasedDiscovery
-
- com.pervasive.datarush.schema.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.
-
-
Field Summary
-
Fields inherited from class com.pervasive.datarush.schema.PatternBasedDiscovery
DEFAULT_PATTERNS
-
-
Constructor Summary
Constructors Constructor Description JsonPatternBasedDiscovery()
JsonPatternBasedDiscovery(List<TypePattern> patterns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<List<String>>
convertJsonAnalysis(List<String> fieldNames, List<com.fasterxml.jackson.databind.JsonNode> recordData)
static List<List<String>>
convertJsonAnalysis(List<String> fieldNames, List<com.fasterxml.jackson.databind.JsonNode> recordData, String nullIndicator)
TextRecord
discoverForRead(List<String> fieldNames, List<com.fasterxml.jackson.databind.JsonNode> jsonRecords, TextConversionDefaults defaults, boolean includeObjects)
-
Methods inherited from class com.pervasive.datarush.schema.PatternBasedDiscovery
discoverForRead, generateForWrite, mergeTypes, predictType
-
-
-
-
Constructor Detail
-
JsonPatternBasedDiscovery
public JsonPatternBasedDiscovery()
-
JsonPatternBasedDiscovery
public JsonPatternBasedDiscovery(List<TypePattern> patterns)
-
-
Method Detail
-
discoverForRead
public TextRecord discoverForRead(List<String> fieldNames, List<com.fasterxml.jackson.databind.JsonNode> jsonRecords, TextConversionDefaults defaults, boolean includeObjects)
-
convertJsonAnalysis
public static List<List<String>> convertJsonAnalysis(List<String> fieldNames, List<com.fasterxml.jackson.databind.JsonNode> recordData)
-
-