Package com.illumon.iris.db.schema.xml
Class LegacySchemaXmlParser.LegacyParser
java.lang.Object
io.deephaven.enterprise.schema.xml.SchemaXmlParser.StandardParser
com.illumon.iris.db.schema.xml.LegacySchemaXmlParser.LegacyParser
- All Implemented Interfaces:
LegacySchemaXmlParser,SchemaXmlParser
- Enclosing interface:
- LegacySchemaXmlParser
public static final class LegacySchemaXmlParser.LegacyParser
extends SchemaXmlParser.StandardParser
implements LegacySchemaXmlParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.schema.xml.LegacySchemaXmlParser
LegacySchemaXmlParser.Factory, LegacySchemaXmlParser.LegacyParserNested classes/interfaces inherited from interface io.deephaven.enterprise.schema.xml.SchemaXmlParser
SchemaXmlParser.StandardParser -
Field Summary
Fields inherited from class io.deephaven.enterprise.schema.xml.SchemaXmlParser.StandardParser
DISABLE_VALIDATION -
Method Summary
Modifier and TypeMethodDescriptionparseDataIndexSets(org.jdom2.Element immutableElement) parseV2Loggers(org.jdom2.Element immutableElement, String namespace, String tableName) Separate this logic out to make testing easier.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.Methods inherited from class io.deephaven.enterprise.schema.xml.SchemaXmlParser.StandardParser
getAttributesMap, getDataIndexSets, getDefaultMergeFormat, getExtendedStorage, getImmutableElement, getImportSources, getInputTableStateSpec, getListeners, getLoggerListeners, getLoggers, getMergeCodecName, getNamespace, getPartitionKeyFormula, getStorageType, getTableName, getV2Loggers, getValidatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.enterprise.schema.xml.SchemaXmlParser
getDataIndexSets, getDefaultMergeFormat, getExtendedStorage, getImportSources, getInputTableStateSpec, getListeners, getLoggerListeners, getLoggers, getMergeCodecName, getNamespace, getPartitionKeyFormula, getStorageType, getTableName, getV2Loggers, getValidator
-
Method Details
-
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
-
getTableDefinition
- Specified by:
getTableDefinitionin interfaceLegacySchemaXmlParser
-
getNamespaceSet
- Specified by:
getNamespaceSetin interfaceLegacySchemaXmlParser
-
parseV2Loggers
protected List<V2Logger> parseV2Loggers(@NotNull org.jdom2.Element immutableElement, @NotNull String namespace, @NotNull String tableName) Description copied from class:SchemaXmlParser.StandardParserSeparate this logic out to make testing easier.- Specified by:
parseV2Loggersin classSchemaXmlParser.StandardParser- Parameters:
immutableElement- the table element to parse- Returns:
- the collection of parsed Loggers
-
parseDataIndexSets
- Specified by:
parseDataIndexSetsin classSchemaXmlParser.StandardParser
-
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
-