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.StorageFormatgetDefaultMergeFormat()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()StringgetMergeCodecName(String mergeFormat)StringgetNamespace()NamespaceSetgetNamespaceSet()StringgetPartitionKeyFormula()IntegergetStorageType()TableDefinitiongetTableDefinition()StringgetTableName()ValidatorgetValidator()static voidsetDefinitionObjectCodecFromColumnElement(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:
getNamespacein interfaceSchemaXmlParser
-
getDefaultMergeFormat
- Specified by:
getDefaultMergeFormatin interfaceSchemaXmlParser- Throws:
SchemaValidationException
-
getMergeCodecName
@Nullable public String getMergeCodecName(@NotNull String mergeFormat) throws SchemaValidationException- Specified by:
getMergeCodecNamein interfaceSchemaXmlParser- Throws:
SchemaValidationException
-
getTableName
- Specified by:
getTableNamein interfaceSchemaXmlParser
-
getNamespaceSet
- Specified by:
getNamespaceSetin interfaceSchemaXmlParser
-
getStorageType
- Specified by:
getStorageTypein interfaceSchemaXmlParser
-
getPartitionKeyFormula
- Specified by:
getPartitionKeyFormulain interfaceSchemaXmlParser
-
getTableDefinition
- Specified by:
getTableDefinitionin interfaceSchemaXmlParser
-
getLoggers
- Specified by:
getLoggersin interfaceSchemaXmlParser
-
getListeners
- Specified by:
getListenersin interfaceSchemaXmlParser
-
getLoggerListeners
- Specified by:
getLoggerListenersin interfaceSchemaXmlParser
-
getImportSources
- Specified by:
getImportSourcesin interfaceSchemaXmlParser
-
getValidator
- Specified by:
getValidatorin interfaceSchemaXmlParser
-
getDataIndexSets
- Specified by:
getDataIndexSetsin 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:SchemaXmlParserValidate the XML in the element, throw an exception if any errors are found.- Specified by:
validatein 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
-