| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | AVRO_SCHEMA_PROP_CLASS
Constant used by native Avro Schemas for indicating more specific physical class of a value; referenced indirectly to reduce direct dependencies to the standard avro library. |
| public static final String | AVRO_SCHEMA_PROP_ELEMENT_CLASS
Constant used by native Avro Schemas for indicating more specific physical class of a array element; referenced indirectly to reduce direct dependencies to the standard avro library. |
| public static final String | AVRO_SCHEMA_PROP_KEY_CLASS
Constant used by native Avro Schemas for indicating more specific physical class of a map key; referenced indirectly to reduce direct dependencies to the standard avro library. |
| private static final ObjectMapper | DEFAULT_VALUE_MAPPER
Dedicated mapper for handling default values (String <-> JsonNode <-> Object) |
| protected static final Set | STRINGABLE_CLASSES
Default stringable classes |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Schema | Returns: schema, possibly with an alias addedSchema to which the alias should be added schema, BeanDescription Bean to inspect for type aliases bean)Looks for |
| public static Schema | |
| public static Schema | Returns: AnENUM schema.Enum type to use for name / description / namespace bean, List<String> List of enum names values)Constructs a new enum schema |
| public static Schema | createUUIDSchema()
Helper method to enclose details of expressing best Avro Schema for
|
| public static String | getFullName(Schema schema)
Returns the full name of a schema; This is similar to |
| protected static String | |
| protected static String | |
| protected static String | |
| protected static String | |
| public static String | |
| public static String | |
| public static String | |
| public static Schema | initializeRecordSchema(BeanDescription bean)
Initializes a record schema with metadata from the given class; this schema is returned in a non-finalized state, and still needs to have fields added to it. |
| public static boolean | Returns: true if it can be stored in a string schema, otherwise falseType to check if it can be serialized to a Avro string schema type)Checks if a given type is "Stringable", that is one of the default
|
| public static Object | |
| public static JsonNode | |
| public static Schema | |
| public static Schema | |
| public static JsonNode | |
| public static JsonNode | Returns: a parsed JSON representation of the default valueThe default value to parse, in the form of a JSON string defaultValue)Converts a default value represented as a string (such as from a schema specification) into a JsonNode for further handling. |
| public static Schema | |
| public static Schema | |
| public static Schema | |
| protected static <T> T | |
| public static Schema | typedSchema(Schema.
Helper method for constructing type-tagged "native" Avro Schema instance. |
| protected static Schema |
| AVRO_SCHEMA_PROP_CLASS | back to summary |
|---|---|
| public static final String AVRO_SCHEMA_PROP_CLASS Constant used by native Avro Schemas for indicating more specific physical class of a value; referenced indirectly to reduce direct dependencies to the standard avro library.
| |
| AVRO_SCHEMA_PROP_ELEMENT_CLASS | back to summary |
|---|---|
| public static final String AVRO_SCHEMA_PROP_ELEMENT_CLASS Constant used by native Avro Schemas for indicating more specific physical class of a array element; referenced indirectly to reduce direct dependencies to the standard avro library.
| |
| AVRO_SCHEMA_PROP_KEY_CLASS | back to summary |
|---|---|
| public static final String AVRO_SCHEMA_PROP_KEY_CLASS Constant used by native Avro Schemas for indicating more specific physical class of a map key; referenced indirectly to reduce direct dependencies to the standard avro library.
| |
| DEFAULT_VALUE_MAPPER | back to summary |
|---|---|
| private static final ObjectMapper DEFAULT_VALUE_MAPPER Dedicated mapper for handling default values (String <-> JsonNode <-> Object)
| |
| STRINGABLE_CLASSES | back to summary |
|---|---|
| protected static final Set<Class<?>> STRINGABLE_CLASSES Default stringable classes
| |
| AvroSchemaHelper | back to summary |
|---|---|
| public AvroSchemaHelper() | |
| addAlias | back to summary |
|---|---|
| public static Schema addAlias(Schema schema, BeanDescription bean) Looks for
| |
| anyNumberSchema | back to summary |
|---|---|
| public static Schema anyNumberSchema() | |
| createEnumSchema | back to summary |
|---|---|
| public static Schema createEnumSchema(BeanDescription bean, List<String> values) Constructs a new enum schema
| |
| createUUIDSchema | back to summary |
|---|---|
| public static Schema createUUIDSchema() Helper method to enclose details of expressing best Avro Schema for
| |
| getFullName | back to summary |
|---|---|
| public static String getFullName(Schema schema) Returns the full name of a schema; This is similar to Warning This method has to probe for nested classes in order to resolve whether or not a schema references a top-level class or a nested class and return the corresponding name for each. | |
| getName | back to summary |
|---|---|
| protected static String getName(JavaType type) | |
| getName | back to summary |
|---|---|
| protected static String getName(Class<?> cls) | |
| getNamespace | back to summary |
|---|---|
| protected static String getNamespace(JavaType type, AnnotatedClass annotations) | |
| getNamespace | back to summary |
|---|---|
| protected static String getNamespace(Class<?> cls) | |
| getTypeId | back to summary |
|---|---|
| public static String getTypeId(JavaType type) | |
| getTypeId | back to summary |
|---|---|
| public static String getTypeId(Class<?> type) Returns the Avro type ID for a given type | |
| getTypeId | back to summary |
|---|---|
| public static String getTypeId(Schema schema) Returns the type ID for this schema, or | |
| initializeRecordSchema | back to summary |
|---|---|
| public static Schema initializeRecordSchema(BeanDescription bean) Initializes a record schema with metadata from the given class; this schema is returned in a non-finalized state, and still needs to have fields added to it. | |
| isStringable | back to summary |
|---|---|
| public static boolean isStringable(AnnotatedClass type) Checks if a given type is "Stringable", that is one of the default
| |
| jsonNodeToObject | back to summary |
|---|---|
public static Object jsonNodeToObject(JsonNode defaultJsonValue)
| |
| nullNode | back to summary |
|---|---|
| public static JsonNode nullNode() | |
| numericAvroSchema | back to summary |
|---|---|
| public static Schema numericAvroSchema(JsonParser. | |
| numericAvroSchema | back to summary |
|---|---|
| public static Schema numericAvroSchema(JsonParser. | |
| objectToJsonNode | back to summary |
|---|---|
public static JsonNode objectToJsonNode(Object defaultValue)
| |
| parseDefaultValue | back to summary |
|---|---|
| public static JsonNode parseDefaultValue(String defaultValue) throws JsonMappingException Converts a default value represented as a string (such as from a schema specification) into a JsonNode for further handling.
| |
| parseJsonSchema | back to summary |
|---|---|
| public static Schema parseJsonSchema(String json) Parses a JSON-formatted representation of a schema | |
| simpleSchema | back to summary |
|---|---|
| public static Schema simpleSchema(JsonFormatTypes type, JavaType hint) | |
| stringableKeyMapSchema | back to summary |
|---|---|
| public static Schema stringableKeyMapSchema(JavaType mapType, JavaType keyType, Schema valueSchema) | |
| throwUnsupported | back to summary |
|---|---|
| protected static <T> T throwUnsupported() | |
| typedSchema | back to summary |
|---|---|
| public static Schema typedSchema(Schema. Helper method for constructing type-tagged "native" Avro Schema instance.
| |
| unionWithNull | back to summary |
|---|---|
| protected static Schema unionWithNull(Schema otherSchema) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| _hashCode | back to summary |
|---|---|
| private final int _hashCode | |
| _name | back to summary |
|---|---|
| private final String _name | |
| _namespace | back to summary |
|---|---|
| private final String _namespace | |
| FullNameKey | back to summary |
|---|---|
| public FullNameKey(String namespace, String name) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| nameWithSeparator | back to summary |
|---|---|
| public String nameWithSeparator(char sep) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final AvroSchemaHelper. | |
| private final LRUMap |
| Access | Constructor and Description |
|---|---|
| private |
| instance | back to summary |
|---|---|
| public static final AvroSchemaHelper. | |
| SCHEMA_NAME_CACHE | back to summary |
|---|---|
| private final LRUMap<AvroSchemaHelper. | |
| FullNameResolver | back to summary |
|---|---|
| private FullNameResolver() | |
| _resolve | back to summary |
|---|---|
| private static String _resolve(AvroSchemaHelper. | |
| resolve | back to summary |
|---|---|
| public String resolve(final String namespace, final String name) | |