@Immutable public final class ImmutableSchema extends org.apache.avro.Schema
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String alias) |
void |
addAlias(String alias,
String space) |
void |
addProp(String name,
org.codehaus.jackson.JsonNode value) |
void |
addProp(String name,
Object value) |
void |
addProp(String name,
String value) |
static ImmutableSchema |
create(org.apache.avro.Schema schema) |
boolean |
equals(Object obj) |
void |
fieldsToJson(org.apache.avro.Schema.Names names,
org.codehaus.jackson.JsonGenerator gen) |
Set<String> |
getAliases() |
String |
getDoc() |
org.apache.avro.Schema |
getElementType() |
int |
getEnumOrdinal(String symbol) |
List<String> |
getEnumSymbols() |
org.apache.avro.Schema.Field |
getField(String fieldname) |
List<org.apache.avro.Schema.Field> |
getFields() |
int |
getFixedSize() |
String |
getFullName() |
Integer |
getIndexNamed(String name) |
org.codehaus.jackson.JsonNode |
getJsonProp(String name) |
Map<String,org.codehaus.jackson.JsonNode> |
getJsonProps() |
org.apache.avro.LogicalType |
getLogicalType() |
String |
getName() |
String |
getNamespace() |
Object |
getObjectProp(String name) |
Map<String,Object> |
getObjectProps() |
String |
getProp(String name) |
Map<String,String> |
getProps() |
List<org.apache.avro.Schema> |
getTypes() |
org.apache.avro.Schema |
getValueType() |
boolean |
hasEnumSymbol(String symbol) |
boolean |
isError() |
void |
setFields(List<org.apache.avro.Schema.Field> fields) |
void |
setLogicalType(org.apache.avro.LogicalType logicalType) |
String |
toString() |
String |
toString(boolean pretty) |
public static ImmutableSchema create(org.apache.avro.Schema schema)
public boolean equals(Object obj)
equals in class org.apache.avro.Schemapublic String toString()
toString in class org.apache.avro.Schemapublic int getFixedSize()
getFixedSize in class org.apache.avro.Schemapublic Integer getIndexNamed(String name)
getIndexNamed in class org.apache.avro.Schemapublic List<org.apache.avro.Schema> getTypes()
getTypes in class org.apache.avro.Schemapublic org.apache.avro.Schema getValueType()
getValueType in class org.apache.avro.Schemapublic org.apache.avro.Schema getElementType()
getElementType in class org.apache.avro.Schemapublic boolean isError()
isError in class org.apache.avro.Schemapublic void addAlias(String alias, String space)
addAlias in class org.apache.avro.Schemapublic void addAlias(String alias)
addAlias in class org.apache.avro.Schemapublic String getFullName()
getFullName in class org.apache.avro.Schemapublic String getNamespace()
getNamespace in class org.apache.avro.Schemapublic String getName()
getName in class org.apache.avro.Schemapublic boolean hasEnumSymbol(String symbol)
hasEnumSymbol in class org.apache.avro.Schemapublic int getEnumOrdinal(String symbol)
getEnumOrdinal in class org.apache.avro.Schemapublic List<String> getEnumSymbols()
getEnumSymbols in class org.apache.avro.Schemapublic void setFields(List<org.apache.avro.Schema.Field> fields)
setFields in class org.apache.avro.Schemapublic List<org.apache.avro.Schema.Field> getFields()
getFields in class org.apache.avro.Schemapublic org.apache.avro.Schema.Field getField(String fieldname)
getField in class org.apache.avro.Schemapublic org.apache.avro.LogicalType getLogicalType()
getLogicalType in class org.apache.avro.Schemapublic void addProp(String name, Object value)
addProp in class org.apache.avro.Schemapublic void addProp(String name, org.codehaus.jackson.JsonNode value)
addProp in class org.apache.avro.Schemapublic Map<String,Object> getObjectProps()
getObjectProps in class org.apache.avro.JsonPropertiespublic Map<String,org.codehaus.jackson.JsonNode> getJsonProps()
getJsonProps in class org.apache.avro.JsonPropertiespublic Map<String,String> getProps()
getProps in class org.apache.avro.JsonPropertiespublic void addProp(String name, String value)
addProp in class org.apache.avro.JsonPropertiespublic Object getObjectProp(String name)
getObjectProp in class org.apache.avro.JsonPropertiespublic org.codehaus.jackson.JsonNode getJsonProp(String name)
getJsonProp in class org.apache.avro.JsonProperties@Nullable public String getProp(String name)
getProp in class org.apache.avro.JsonPropertiespublic void fieldsToJson(org.apache.avro.Schema.Names names,
org.codehaus.jackson.JsonGenerator gen)
throws IOException
fieldsToJson in class org.apache.avro.SchemaIOExceptionpublic String toString(boolean pretty)
toString in class org.apache.avro.Schemapublic void setLogicalType(org.apache.avro.LogicalType logicalType)
setLogicalType in class org.apache.avro.SchemaCopyright © 2018 SPF4J. All rights reserved.