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
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 TypeMethodDescriptionList<com.illumon.iris.db.schema.xml.ImportSourceXmlImpl>List<com.illumon.iris.db.schema.xml.ListenerXmlImpl>List<com.illumon.iris.db.schema.xml.LoggerListenerXmlImpl>List<com.illumon.iris.db.schema.xml.LoggerXmlImpl>getMergeCodecName(String mergeFormat) 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.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
-
getExtendedStorage
- Specified by:
getExtendedStoragein interfaceSchemaXmlParser
-
getInputTableStateSpec
- Specified by:
getInputTableStateSpecin interfaceSchemaXmlParser
-
setDefinitionObjectCodecFromColumnElement
public static void setDefinitionObjectCodecFromColumnElement(org.jdom2.Element columnElement, com.illumon.dataobjects.ColumnDefinition result, String columnName) throws SchemaValidationException Sets 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 SchemaValidationException Description 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
-