Package org.apache.avro
Class JsonSchemaFormatter
java.lang.Object
org.apache.avro.JsonSchemaFormatter
- All Implemented Interfaces:
SchemaFormatter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonSchemaFormatter
public JsonSchemaFormatter(boolean prettyPrinted)
-
-
Method Details
-
format
Description copied from interface:SchemaFormatterWrite the specified schema as a String.- Specified by:
formatin interfaceSchemaFormatter- Parameters:
schema- the schema to write- Returns:
- the formatted schema
-