Class JsonSchemaFormatter

java.lang.Object
org.apache.avro.JsonSchemaFormatter
All Implemented Interfaces:
SchemaFormatter

public class JsonSchemaFormatter extends Object implements SchemaFormatter
  • Constructor Details

    • JsonSchemaFormatter

      public JsonSchemaFormatter(boolean prettyPrinted)
  • Method Details

    • format

      public String format(Schema schema)
      Description copied from interface: SchemaFormatter
      Write the specified schema as a String.
      Specified by:
      format in interface SchemaFormatter
      Parameters:
      schema - the schema to write
      Returns:
      the formatted schema