public class DataSchemaParser
extends java.lang.Object
DataSchemaParser.Builder
to create instances of this parser.| Modifier and Type | Class and Description |
|---|---|
static class |
DataSchemaParser.Builder |
static class |
DataSchemaParser.ParseResult
Represent the result of schema parsing.
|
| Constructor and Description |
|---|
DataSchemaParser(java.lang.String resolverPath)
Deprecated.
Use
DataSchemaParser.Builder to construct the parser. |
DataSchemaParser(java.lang.String resolverPath,
com.linkedin.data.schema.resolver.AbstractMultiFormatDataSchemaResolver resolver)
Deprecated.
Use
DataSchemaParser.Builder to construct the parser. |
DataSchemaParser(java.lang.String resolverPath,
java.util.List<com.linkedin.data.schema.DataSchemaParserFactory> parserFactoriesForFormats)
Deprecated.
Use
DataSchemaParser.Builder to construct the parser. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResolverPath() |
com.linkedin.data.schema.DataSchemaResolver |
getSchemaResolver() |
DataSchemaParser.ParseResult |
parseSources(java.lang.String[] rawSources)
Parses all schemas from the specified sources.
|
@Deprecated public DataSchemaParser(java.lang.String resolverPath)
DataSchemaParser.Builder to construct the parser.resolverPath - provides the search paths separated by the system file separator, or null for no search paths.@Deprecated
public DataSchemaParser(java.lang.String resolverPath,
java.util.List<com.linkedin.data.schema.DataSchemaParserFactory> parserFactoriesForFormats)
DataSchemaParser.Builder to construct the parser.resolverPath - provides the search paths separated by the system file separator, or null for no search paths.parserFactoriesForFormats - list of different formats that we want to parse@Deprecated
public DataSchemaParser(java.lang.String resolverPath,
com.linkedin.data.schema.resolver.AbstractMultiFormatDataSchemaResolver resolver)
DataSchemaParser.Builder to construct the parser.resolverPath - provides the search paths separated by the system file separator, or null for no search paths.resolver - A resolver that address its own specific requirement, for example, resolving extension schemas in a Jar filepublic java.lang.String getResolverPath()
public com.linkedin.data.schema.DataSchemaResolver getSchemaResolver()
public DataSchemaParser.ParseResult parseSources(java.lang.String[] rawSources) throws java.io.IOException
rawSources - sources to scan and parse for pegasus schemas.java.io.IOException