public interface SchemaGenerator
Schema.| Modifier and Type | Method and Description |
|---|---|
Schema |
generate(Type type)
|
Schema |
generate(Type type,
boolean acceptRecursiveTypes)
|
Schema generate(Type type) throws UnsupportedTypeException
Schema generate(Type type, boolean acceptRecursiveTypes) throws UnsupportedTypeException
type - The java Type for generating a Schema.acceptRecursiveTypes - Whether to tolerate type recursion. If false, will throw UnsupportedTypeException if
a recursive type is encountered.Schema representing the given java Type.UnsupportedTypeException - Indicates schema generation is not supported for the given java
Type.Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.