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 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.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
-
getExtendedStorage
- Specified by:
getExtendedStorage
in interfaceSchemaXmlParser
-
getInputTableStateSpec
- Specified by:
getInputTableStateSpec
in 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: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
-