| Avro type | JSON type | Java type |
null |
null |
NULL_VALUE |
boolean |
Boolean | boolean |
int |
Number | int |
long |
Number | long |
float |
Number | float |
double |
Number | double |
bytes |
String | byte[] |
string |
String | java. |
record |
Object | java. |
enum |
String | java. |
array |
Array | java. |
map |
Object | java. |
fixed |
String | byte[] |
org.apache.avro.data.Json
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final JsonProperties. | NULL_VALUE
A value representing a JSON |
| private ConcurrentMap | |
| private Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| private void | |
| private JsonNode | |
| public Object | |
| public Map | |
| public String | |
| public boolean | |
| pack-priv boolean | |
| pack-priv int | |
| public void | |
| pack-priv void |
| NULL_VALUE | back to summary |
|---|---|
| public static final JsonProperties. A value representing a JSON | |
| props | back to summary |
|---|---|
| private ConcurrentMap<String, JsonNode> props | |
| reserved | back to summary |
|---|---|
| private Set<String> reserved | |
| JsonProperties | back to summary |
|---|---|
| pack-priv JsonProperties(Set<String> reserved) | |
| JsonProperties | back to summary |
|---|---|
| pack-priv JsonProperties(Set<String> reserved, Map<String, ?> propMap) | |
| addAllProps | back to summary |
|---|---|
| public void addAllProps(JsonProperties properties) Adds all the props from the specified json properties.
| |
| addProp | back to summary |
|---|---|
| public void addProp(String name, String value) Adds a property with the given name name and value value. Neither name nor value can be null. It is illegal to add a property if another with the same name but different value already exists in this schema. | |
| addProp | back to summary |
|---|---|
| public void addProp(String name, Object value) | |
| addProp | back to summary |
|---|---|
| private void addProp(String name, JsonNode value) Adds a property with the given name name and value value. Neither name nor value can be null. It is illegal to add a property if another with the same name but different value already exists in this schema. | |
| getJsonProp | back to summary |
|---|---|
| private JsonNode getJsonProp(String name) Returns the value of the named property in this schema. Returns null if there is no property with that name. | |
| getObjectProp | back to summary |
|---|---|
| public Object getObjectProp(String name) Returns the value of the named property in this schema. Returns null if there is no property with that name. | |
| getObjectProps | back to summary |
|---|---|
| public Map Return the defined properties as an unmodifiable Map. | |
| getProp | back to summary |
|---|---|
| public String getProp(String name) Returns the value of the named, string-valued property in this schema. Returns null if there is no string-valued property with that name. | |
| hasProps | back to summary |
|---|---|
| public boolean hasProps() | |
| propsEqual | back to summary |
|---|---|
| pack-priv boolean propsEqual(JsonProperties np) | |
| propsHashCode | back to summary |
|---|---|
| pack-priv int propsHashCode() | |
| putAll | back to summary |
|---|---|
| public void putAll(JsonProperties np) | |
| writeProps | back to summary |
|---|---|
| pack-priv void writeProps(JsonGenerator gen) throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| Null | back to summary |
|---|---|
| private Null() | |