Package org.apache.avro
Class JsonSchemaFormatterFactory
java.lang.Object
org.apache.avro.JsonSchemaFormatterFactory
- All Implemented Interfaces:
- SchemaFormatterFactory
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the default formatter for this schema format.getFormatterForVariant(String variantName) Get a formatter for the specified schema format variant, if multiple variants are supported.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.avro.SchemaFormatterFactoryformatName
- 
Field Details- 
VARIANT_NAME_PRETTY- See Also:
 
- 
VARIANT_NAME_INLINE- See Also:
 
 
- 
- 
Constructor Details- 
JsonSchemaFormatterFactorypublic JsonSchemaFormatterFactory()
 
- 
- 
Method Details- 
getDefaultFormatterDescription copied from interface:SchemaFormatterFactoryGet the default formatter for this schema format. Instances should be thread-safe, as they may be cached.Implementations should either return the only formatter for this format, or call SchemaFormatterFactory.getFormatterForVariant(String)with the default variant and implement that method as well.- Specified by:
- getDefaultFormatterin interface- SchemaFormatterFactory
- Returns:
- the default formatter for this schema format
 
- 
getFormatterForVariantDescription copied from interface:SchemaFormatterFactoryGet a formatter for the specified schema format variant, if multiple variants are supported. Instances should be thread-safe, as they may be cached.- Specified by:
- getFormatterForVariantin interface- SchemaFormatterFactory
- Parameters:
- variantName- the name of the format variant (lower case), if specified
- Returns:
- if the factory supports the format, a schema writer; nullotherwise
 
 
-