public class StructuredSchemaReader extends Object
Modifier and Type | Method and Description |
---|---|
static TextSchema |
load(String schemaFile)
Gets the text schema defined in the specified structured schema file.
|
static TextSchema |
load(String schemaFile,
TextTypes.StringConversion stringHandling)
Gets the text schema defined in the specified structured schema file, providing
hints about how string valued fields should be interpreted.
|
TextSchema |
parse(String schemaResource)
Parse the given schema file.
|
void |
setStringHandling(TextTypes.StringConversion handling)
Configures the string conversion properties of the reader.
|
public void setStringHandling(TextTypes.StringConversion handling)
handling
- the conversion policies to usepublic TextSchema parse(String schemaResource)
schemaResource
- the name of a file containing a structured schemaDRException
- thrown if any I/O or parser error occurspublic static TextSchema load(String schemaFile)
schemaFile
- the file to loadpublic static TextSchema load(String schemaFile, TextTypes.StringConversion stringHandling)
schemaFile
- the file to loadstringHandling
- the string conversion policies to use
whitespace removedCopyright © 2020 Actian Corporation. All rights reserved.