Class AvroWriter
- java.lang.Object
-
- com.github.fge.jsonschema2avro.writers.AvroWriter
-
- All Implemented Interfaces:
com.github.fge.jsonschema.core.processing.Processor<AvroPayload,com.github.fge.jsonschema.core.util.ValueHolder<org.apache.avro.Schema>>
- Direct Known Subclasses:
ArrayWriter,MapWriter,NamedTypeWriter,SimpleTypeWriter,SimpleUnionWriter,TypeUnionWriter
public abstract class AvroWriter extends java.lang.Object implements com.github.fge.jsonschema.core.processing.Processor<AvroPayload,com.github.fge.jsonschema.core.util.ValueHolder<org.apache.avro.Schema>>
-
-
Constructor Summary
Constructors Constructor Description AvroWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.apache.avro.Schemagenerate(AvroWriterProcessor writer, com.github.fge.jsonschema.core.report.ProcessingReport report, com.github.fge.jsonschema.core.tree.SchemaTree tree)com.github.fge.jsonschema.core.util.ValueHolder<org.apache.avro.Schema>process(com.github.fge.jsonschema.core.report.ProcessingReport report, AvroPayload input)
-
-
-
Method Detail
-
process
public final com.github.fge.jsonschema.core.util.ValueHolder<org.apache.avro.Schema> process(com.github.fge.jsonschema.core.report.ProcessingReport report, AvroPayload input) throws com.github.fge.jsonschema.core.exceptions.ProcessingException- Specified by:
processin interfacecom.github.fge.jsonschema.core.processing.Processor<AvroPayload,com.github.fge.jsonschema.core.util.ValueHolder<org.apache.avro.Schema>>- Throws:
com.github.fge.jsonschema.core.exceptions.ProcessingException
-
generate
protected abstract org.apache.avro.Schema generate(AvroWriterProcessor writer, com.github.fge.jsonschema.core.report.ProcessingReport report, com.github.fge.jsonschema.core.tree.SchemaTree tree) throws com.github.fge.jsonschema.core.exceptions.ProcessingException
- Throws:
com.github.fge.jsonschema.core.exceptions.ProcessingException
-
-