public final class Schemas extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyAliases(org.apache.avro.Schema.Field from,
org.apache.avro.Schema.Field to) |
static void |
copyAliases(org.apache.avro.Schema from,
org.apache.avro.Schema to) |
static void |
copyLogicalTypes(org.apache.avro.Schema from,
org.apache.avro.Schema to) |
static void |
copyProperties(org.apache.avro.JsonProperties from,
org.apache.avro.JsonProperties to) |
static String |
getJavaClassName(org.apache.avro.Schema schema) |
static boolean |
hasGeneratedJavaClass(org.apache.avro.Schema schema) |
static String |
mangle(String word)
Utility for template use.
|
static String |
mangle(String word,
Set<String> reservedWords)
Utility for template use.
|
static String |
mangle(String word,
Set<String> reservedWords,
boolean isMethod)
Utility for template use.
|
static <T> T |
visit(org.apache.avro.Schema start,
SchemaVisitor<T> visitor)
depth first visit.
|
public static void copyAliases(org.apache.avro.Schema from,
org.apache.avro.Schema to)
public static void copyAliases(org.apache.avro.Schema.Field from,
org.apache.avro.Schema.Field to)
public static void copyLogicalTypes(org.apache.avro.Schema from,
org.apache.avro.Schema to)
public static void copyProperties(org.apache.avro.JsonProperties from,
org.apache.avro.JsonProperties to)
public static boolean hasGeneratedJavaClass(org.apache.avro.Schema schema)
public static String getJavaClassName(org.apache.avro.Schema schema)
public static <T> T visit(org.apache.avro.Schema start,
SchemaVisitor<T> visitor)
start - visitor - public static String mangle(String word)
public static String mangle(String word, Set<String> reservedWords)
Copyright © 2020 SPF4J. All rights reserved.