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.
|
static TextSchema |
loadString(String schemaString)
Gets the text schema defined in the specified structured schema string.
|
TextSchema |
parse(String schemaResource)
Parse the given schema file.
|
TextSchema |
parseString(String schemaString)
Parse the given schema string.
|
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 TextSchema parseString(String schemaString)
schemaString - the name of a string containing a structured schemaDRException - thrown if any I/O or parser error occurspublic static TextSchema loadString(String schemaString)
schemaString - the string to loadpublic 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 © 2024 Actian Corporation. All rights reserved.