public class DeriveJsonSchema extends DeriveSchema
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOLEAN |
static String |
NULL |
static String |
NUMBER |
static String |
STRING |
classToDataType, mapper, PRIMITIVE_SCHEMA_TYPE| Constructor and Description |
|---|
DeriveJsonSchema() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
convertToFormat(com.fasterxml.jackson.databind.JsonNode schema,
String name)
Generate json schema and check for any errors
|
protected com.fasterxml.jackson.databind.node.ObjectNode |
mergeMultipleDataTypes(com.fasterxml.jackson.databind.node.ObjectNode mergedArray,
List<com.fasterxml.jackson.databind.JsonNode> primitives,
List<com.fasterxml.jackson.databind.JsonNode> records,
List<com.fasterxml.jackson.databind.JsonNode> arrays,
boolean check2dArray)
Merge different records into one record and different arrays into one array
Multiple data types are combined through oneOf
|
com.fasterxml.jackson.databind.node.ArrayNode |
mergeMultipleMessages(List<com.fasterxml.jackson.databind.JsonNode> uniqueSchemas,
Map<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.node.ArrayNode> schemaToIndex)
Merge the unique schemas into one record by combining fields and merging data types
|
checkName, getNullSchema, getPrimitiveSchema, getSchemaForArray, getSchemaForMultipleMessages, getSchemaForRecord, getSchemaOfAllElements, getSingleDataType, mergeArrays, mergeRecords, updateSchemaInformationpublic static final String NUMBER
public static final String STRING
public static final String BOOLEAN
public static final String NULL
protected com.fasterxml.jackson.databind.node.ObjectNode mergeMultipleDataTypes(com.fasterxml.jackson.databind.node.ObjectNode mergedArray,
List<com.fasterxml.jackson.databind.JsonNode> primitives,
List<com.fasterxml.jackson.databind.JsonNode> records,
List<com.fasterxml.jackson.databind.JsonNode> arrays,
boolean check2dArray)
mergeMultipleDataTypes in class DeriveSchemapublic com.fasterxml.jackson.databind.node.ArrayNode mergeMultipleMessages(List<com.fasterxml.jackson.databind.JsonNode> uniqueSchemas, Map<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.node.ArrayNode> schemaToIndex)
mergeMultipleMessages in class DeriveSchemaprotected com.fasterxml.jackson.databind.JsonNode convertToFormat(com.fasterxml.jackson.databind.JsonNode schema,
String name)
convertToFormat in class DeriveSchemaCopyright © 2026 Confluent, Inc.. All rights reserved.