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" |
| 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 | AvroMapper(Module... modules)
Constructor that will construct mapper with standard |
| public | AvroMapper(AvroFactory f, Module... modules)
Constructor that will construct mapper with specified |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonMappingException | |
| public static AvroMapper. | |
| public static AvroMapper. | |
| public AvroMapper | copy()
Overrides com. Method for creating a new |
| public AvroFactory | getFactory()
Overrides com. Accessor for finding underlying data format factory
( |
| 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 Version | version()
Overrides com. Implements com. Method that will return version information stored in and read from jar that contains this class. |
| public static AvroMapper. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| 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(Module... modules) Constructor that will construct mapper with standard | |
| AvroMapper | back to summary |
|---|---|
| public AvroMapper(AvroFactory f, Module... modules) Constructor that will construct mapper with specified | |
| AvroMapper | back to summary |
|---|---|
| protected AvroMapper(ObjectMapper src) | |
| _invalidSchemaDefinition | back to summary |
|---|---|
| protected JsonMappingException _invalidSchemaDefinition(JavaType type, Exception e0) | |
| builder | back to summary |
|---|---|
public static AvroMapper.
| |
| builder | back to summary |
|---|---|
| public static AvroMapper. | |
| copy | back to summary |
|---|---|
| public AvroMapper copy() Overrides com. Doc from com. Method for creating a new Method is typically used when multiple, differently configured mappers are needed. Although configuration is shared, cached serializers and deserializers are NOT shared, which means that the new instance may be re-configured before use; meaning that it behaves the same way as if an instance was constructed from scratch.
| |
| getFactory | back to summary |
|---|---|
| public AvroFactory getFactory() Overrides com. Doc from com. Accessor for finding underlying data format factory
(
| |
| schemaFor | back to summary |
|---|---|
| public AvroSchema schemaFor(Class<?> type) throws JsonMappingException Factory method for constructing Resulting schema object does not use separate reader/writer schemas.
| |
| schemaFor | back to summary |
|---|---|
| public AvroSchema schemaFor(JavaType type) throws JsonMappingException 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.
| |
| version | back to summary |
|---|---|
| public Version version() Overrides com. Implements com. Doc from com. Method that will return version information stored in and read from jar that contains this class.
| |
| xmlBuilder | back to summary |
|---|---|
public static AvroMapper.
| |
ObjectMapper, used with
Avro backend.
| Modifier and Type | Field and Description |
|---|---|
| protected final AvroFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. | |
| public AvroMapper. |
| _streamFactory | back to summary |
|---|---|
| protected final AvroFactory _streamFactory | |
| Builder | back to summary |
|---|---|
| public Builder(AvroMapper m) | |
| 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. | |