AvroMapper, which is mostly similar to simply
constructing a mapper with AvroFactory, but also adds little
bit of convenience around AvroSchema generation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | AvroMapper.
Base implementation for "Vanilla" |
| private static class | AvroMapper.
Helper class to contain dynamically constructed "shared" instance of
mapper, should one be needed via |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | AvroMapper()
Constructor that will construct mapper with standard |
| public | AvroMapper(AvroFactory f)
Constructor that will construct mapper with given |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JacksonException | |
| public static AvroMapper. | |
| public static AvroMapper. | |
| public AvroMapper. | rebuild()
Overrides tools. Method for creating a new |
| public AvroSchema | schemaFor(Class<?> type)
Factory method for constructing |
| public AvroSchema | schemaFor(JavaType type)
Factory method for constructing |
| public AvroSchema | schemaFrom(InputStream in)
Method for reading an Avro Schema from given |
| public AvroSchema | schemaFrom(String schemaAsString)
Convenience method for reading |
| public AvroSchema | schemaFrom(File schemaFile)
Convenience method for reading |
| public static AvroMapper | shared()
Accessor method for getting globally shared "default" |
| public AvroFactory | tokenStreamFactory()
Overrides tools. Method that can be used to get hold of |
| public Version | version()
Overrides tools. Implements tools. Method that will return version information stored in and read from jar that contains this class. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AvroMapper | back to summary |
|---|---|
| public AvroMapper() Constructor that will construct mapper with standard | |
| AvroMapper | back to summary |
|---|---|
| public AvroMapper(AvroFactory f) Constructor that will construct mapper with given | |
| AvroMapper | back to summary |
|---|---|
| public AvroMapper(AvroMapper. | |
| _invalidSchemaDefinition | back to summary |
|---|---|
| protected JacksonException _invalidSchemaDefinition(JavaType type, Exception e0) | |
| builder | back to summary |
|---|---|
| public static AvroMapper. | |
| builder | back to summary |
|---|---|
| public static AvroMapper. | |
| rebuild | back to summary |
|---|---|
| public AvroMapper. Overrides tools. Doc from tools. Method for creating a new
| |
| schemaFor | back to summary |
|---|---|
| public AvroSchema schemaFor(Class<?> type) Factory method for constructing Resulting schema object does not use separate reader/writer schemas. | |
| schemaFor | back to summary |
|---|---|
| public AvroSchema schemaFor(JavaType type) Factory method for constructing Resulting schema object does not use separate reader/writer schemas. | |
| schemaFrom | back to summary |
|---|---|
| public AvroSchema schemaFrom(InputStream in) throws IOException Method for reading an Avro Schema from given Resulting schema object does not use separate reader/writer schemas. | |
| schemaFrom | back to summary |
|---|---|
| public AvroSchema schemaFrom(String schemaAsString) throws IOException Convenience method for reading Resulting schema object does not use separate reader/writer schemas. | |
| schemaFrom | back to summary |
|---|---|
| public AvroSchema schemaFrom(File schemaFile) throws IOException Convenience method for reading Resulting schema object does not use separate reader/writer schemas. | |
| shared | back to summary |
|---|---|
| public static AvroMapper shared() Accessor method for getting globally shared "default" | |
| tokenStreamFactory | back to summary |
|---|---|
| public AvroFactory tokenStreamFactory() Overrides tools. Doc from tools. Method that can be used to get hold of Warning note that all
| |
| version | back to summary |
|---|---|
| public Version version() Overrides tools. Implements tools. Doc from tools. Method that will return version information stored in and read from jar that contains this class.
| |
ObjectMapper, used with
Avro backend.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected MapperBuilderState | |
| public AvroMapper | build()
Implements abstract tools. Method to call to create actual mapper instance. |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. |
| Builder | back to summary |
|---|---|
| public Builder(AvroFactory f) | |
| Builder | back to summary |
|---|---|
| public Builder(AvroMapper. | |
| _saveState | back to summary |
|---|---|
| protected MapperBuilderState _saveState() Implements abstract tools.
| |
| build | back to summary |
|---|---|
| public AvroMapper build() Implements abstract tools. Doc from tools. Method to call to create actual mapper instance.
Implementation detail: usually construction occurs by passing
| |
| configure | back to summary |
|---|---|
| public AvroMapper. | |
| configure | back to summary |
|---|---|
| public AvroMapper. | |
| disable | back to summary |
|---|---|
| public AvroMapper. | |
| disable | back to summary |
|---|---|
| public AvroMapper. | |
| enable | back to summary |
|---|---|
| public AvroMapper. | |
| enable | back to summary |
|---|---|
| public AvroMapper. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | readResolve()
Implements abstract tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| StateImpl | back to summary |
|---|---|
| public StateImpl(AvroMapper. | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Implements abstract tools. Doc from tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it.
| |