Class ParsedSchema
java.lang.Object
org.springframework.cloud.stream.schema.registry.ParsedSchema
Stores a
Schema together with its String representation.
Helps to avoid unnecessary parsing of schema textual representation, as well as calls
to Schema toString method which is very expensive due the
utilization of ObjectMapper to output a JSON
representation of the schema.
Once a schema is found for any Class, be it a POJO or a
GenericContainer, both textual representation as well
as the Schema will be stored within this class.- Author:
- Vinicius Carvalho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.SchemavoidsetRegistration(SchemaRegistrationResponse registration)
-
Constructor Details
-
ParsedSchema
public ParsedSchema(org.apache.avro.Schema schema)
-
-
Method Details
-
getSchema
public org.apache.avro.Schema getSchema() -
getRepresentation
-
getRegistration
-
setRegistration
-