Note
in Jackson 2.x this was named AvroGenerator.Feature.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final int | |
| public static final AvroWriteFeature | ADD_NULL_AS_DEFAULT_VALUE_IN_SCHEMA
Feature that enables addition of |
| public static final AvroWriteFeature | AVRO_BUFFERING
Feature that can be disabled to prevent Avro from buffering any more data then absolutely necessary. |
| public static final AvroWriteFeature | AVRO_FILE_OUTPUT
Feature that tells Avro to write data in file format (i.e. including the schema with the data) rather than the RPC format which is otherwise default Note reader-side will have to be aware of distinction as well, since possible inclusion of this header is not 100% reliably auto-detectable (while header has distinct marker, "raw" Avro content has no limitations and could theoretically have same pre-amble from data). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default. |
| public boolean | enabledByDefault()
Implements tools. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int flags)
Implements tools. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements tools. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static AvroWriteFeature | |
| public static AvroWriteFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| ADD_NULL_AS_DEFAULT_VALUE_IN_SCHEMA | back to summary |
|---|---|
| public static final AvroWriteFeature ADD_NULL_AS_DEFAULT_VALUE_IN_SCHEMA Feature that enables addition of Disabled by default.
| |
| AVRO_BUFFERING | back to summary |
|---|---|
| public static final AvroWriteFeature AVRO_BUFFERING Feature that can be disabled to prevent Avro from buffering any more data then absolutely necessary. This affects buffering by underlying codec. Note that disabling buffer is likely to reduce performance if the underlying input/output is unbuffered. Enabled by default to preserve the existing behavior. | |
| AVRO_FILE_OUTPUT | back to summary |
|---|---|
| public static final AvroWriteFeature AVRO_FILE_OUTPUT Feature that tells Avro to write data in file format (i.e. including the schema with the data) rather than the RPC format which is otherwise default Note reader-side will have to be aware of distinction as well, since possible inclusion of this header is not 100% reliably auto-detectable (while header has distinct marker, "raw" Avro content has no limitations and could theoretically have same pre-amble from data). | |
| AvroWriteFeature | back to summary |
|---|---|
| private AvroWriteFeature(boolean defaultState) | |
| collectDefaults | back to summary |
|---|---|
| public static int collectDefaults() Method that calculates bit set (flags) of all features that are enabled by default. | |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements tools. Doc from tools. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements tools. Doc from tools. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements tools. Doc from tools. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static AvroWriteFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static AvroWriteFeature[] values() | |