public class ParsedSchema extends Object
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.Constructor and Description |
---|
ParsedSchema(org.apache.avro.Schema schema) |
Modifier and Type | Method and Description |
---|---|
SchemaRegistrationResponse |
getRegistration() |
String |
getRepresentation() |
org.apache.avro.Schema |
getSchema() |
void |
setRegistration(SchemaRegistrationResponse registration) |
public org.apache.avro.Schema getSchema()
public String getRepresentation()
public SchemaRegistrationResponse getRegistration()
public void setRegistration(SchemaRegistrationResponse registration)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.