Package com.illumon.iris.db.schema.xml
Class SchemaXmlParser.StandardParser
java.lang.Object
com.illumon.iris.db.schema.xml.SchemaXmlParser.StandardParser
- All Implemented Interfaces:
SchemaXmlParser
- Enclosing interface:
- SchemaXmlParser
public static class SchemaXmlParser.StandardParser extends Object implements SchemaXmlParser
Contract: copies element, does not change it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.schema.xml.SchemaXmlParser
SchemaXmlParser.Factory, SchemaXmlParser.StandardParser
-
Method Summary
Modifier and Type Method Description List<String[]>
getDataIndexSets()
Database.StorageFormat
getDefaultMergeFormat()
List<com.illumon.iris.db.schema.xml.ImportSourceXmlImpl>
getImportSources()
List<com.illumon.iris.db.schema.xml.ListenerXmlImpl>
getListeners()
List<com.illumon.iris.db.schema.xml.LoggerListenerXmlImpl>
getLoggerListeners()
List<com.illumon.iris.db.schema.xml.LoggerXmlImpl>
getLoggers()
String
getMergeCodecName(String mergeFormat)
String
getNamespace()
NamespaceSet
getNamespaceSet()
String
getPartitionKeyFormula()
Integer
getStorageType()
TableDefinition
getTableDefinition()
String
getTableName()
Validator
getValidator()
static void
setDefinitionObjectCodecFromColumnElement(org.jdom2.Element columnElement, com.illumon.dataobjects.ColumnDefinition result, String columnName)
Sets the objectCodec parameters of the column definition based on the given XML Column element.List<SchemaValidationException>
validate(boolean lenientValidation)
Validate the XML in the element, throw an exception if any errors are found.
-
Method Details
-
getNamespace
- Specified by:
getNamespace
in interfaceSchemaXmlParser
-
getDefaultMergeFormat
- Specified by:
getDefaultMergeFormat
in interfaceSchemaXmlParser
- Throws:
SchemaValidationException
-
getMergeCodecName
@Nullable public String getMergeCodecName(@NotNull String mergeFormat) throws SchemaValidationException- Specified by:
getMergeCodecName
in interfaceSchemaXmlParser
- Throws:
SchemaValidationException
-
getTableName
- Specified by:
getTableName
in interfaceSchemaXmlParser
-
getNamespaceSet
- Specified by:
getNamespaceSet
in interfaceSchemaXmlParser
-
getStorageType
- Specified by:
getStorageType
in interfaceSchemaXmlParser
-
getPartitionKeyFormula
- Specified by:
getPartitionKeyFormula
in interfaceSchemaXmlParser
-
getTableDefinition
- Specified by:
getTableDefinition
in interfaceSchemaXmlParser
-
getLoggers
- Specified by:
getLoggers
in interfaceSchemaXmlParser
-
getListeners
- Specified by:
getListeners
in interfaceSchemaXmlParser
-
getLoggerListeners
- Specified by:
getLoggerListeners
in interfaceSchemaXmlParser
-
getImportSources
- Specified by:
getImportSources
in interfaceSchemaXmlParser
-
getValidator
- Specified by:
getValidator
in interfaceSchemaXmlParser
-
getDataIndexSets
- Specified by:
getDataIndexSets
in interfaceSchemaXmlParser
-
setDefinitionObjectCodecFromColumnElement
public static void setDefinitionObjectCodecFromColumnElement(org.jdom2.Element columnElement, com.illumon.dataobjects.ColumnDefinition result, String columnName) throws SchemaValidationExceptionSets the objectCodec parameters of the column definition based on the given XML Column element.- Parameters:
columnElement
- the XML element containing the object codec parametersresult
- the column definition to set the objectCodecClass, objectWidth, and objectCodecArguments oncolumnName
- the name of the column (for error reporting)- Throws:
SchemaValidationException
-
validate
@NotNull public List<SchemaValidationException> validate(boolean lenientValidation) throws SchemaValidationExceptionDescription copied from interface:SchemaXmlParser
Validate the XML in the element, throw an exception if any errors are found.- Specified by:
validate
in interfaceSchemaXmlParser
- Parameters:
lenientValidation
- if true, ClassNotFoundExceptions will be ignored when validating- Returns:
- SchemaValidationExceptions list of exceptions that were ignored because lenientValidation==true
- Throws:
SchemaValidationException
- if any errors are found validating
-