Class SchemaUtil
java.lang.Object
org.apache.pulsar.client.impl.schema.util.SchemaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.SchemacreateAvroSchema(SchemaDefinition schemaDefinition) static org.apache.avro.SchemaextractAvroSchema(SchemaDefinition schemaDefinition, Class pojo) static booleangetJsr310ConversionEnabledFromSchemaInfo(SchemaInfo schemaInfo) static org.apache.avro.SchemaparseAvroSchema(String schemaJson) static <T> SchemaInfoparseSchemaInfo(SchemaDefinition<T> schemaDefinition, SchemaType schemaType)
-
Constructor Details
-
SchemaUtil
public SchemaUtil()
-
-
Method Details
-
getJsr310ConversionEnabledFromSchemaInfo
-
parseAvroSchema
-
parseSchemaInfo
public static <T> SchemaInfo parseSchemaInfo(SchemaDefinition<T> schemaDefinition, SchemaType schemaType) -
createAvroSchema
-
extractAvroSchema
public static org.apache.avro.Schema extractAvroSchema(SchemaDefinition schemaDefinition, Class pojo)
-