public abstract class JsonProperties extends Object
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 | String |
record |
Object | Map |
enum |
String | String |
array |
Array | Collection |
map |
Object | Map |
fixed |
String | byte[] |
Json
Modifier and Type | Class and Description |
---|---|
static class |
JsonProperties.Null |
Modifier and Type | Field and Description |
---|---|
static JsonProperties.Null |
NULL_VALUE
A value representing a JSON
null . |
Modifier and Type | Method and Description |
---|---|
void |
addProp(String name,
org.codehaus.jackson.JsonNode value)
Deprecated.
|
void |
addProp(String name,
Object value) |
void |
addProp(String name,
String value)
Adds a property with the given name name and
value value.
|
org.codehaus.jackson.JsonNode |
getJsonProp(String name)
Deprecated.
|
Map<String,org.codehaus.jackson.JsonNode> |
getJsonProps()
Deprecated.
use
getObjectProps() |
Object |
getObjectProp(String name)
Returns the value of the named property in this schema.
|
Map<String,Object> |
getObjectProps()
Return the defined properties as an unmodifieable Map.
|
String |
getProp(String name)
Returns the value of the named, string-valued property in this schema.
|
Map<String,String> |
getProps()
Deprecated.
|
public static final JsonProperties.Null NULL_VALUE
null
.public String getProp(String name)
@Deprecated public org.codehaus.jackson.JsonNode getJsonProp(String name)
getObjectProp(String)
public Object getObjectProp(String name)
public void addProp(String name, String value)
name
- The name of the property to addvalue
- The value for the property to add@Deprecated public void addProp(String name, org.codehaus.jackson.JsonNode value)
addProp(String, Object)
name
- The name of the property to addvalue
- The value for the property to add@Deprecated public Map<String,String> getProps()
@Deprecated public Map<String,org.codehaus.jackson.JsonNode> getJsonProps()
getObjectProps()
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.