Package com.illumon.iris.db.schema
Class InvalidSchema
java.lang.Object
com.illumon.iris.db.schema.InvalidSchema
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,Schema,TableDefinitionSchema,SchemaXml,Serializable
Placeholder schema for copy tables that delegate to nonexistent/invalid sources.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.schema.Schema
Schema.AbstractSchema, Schema.Delegating -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all top level attributes for this schema.getAttributeValue(String attributeName) Get the value for the named attribute.Get an unmodifiable map of column names to column descriptions.Get the set of Data Indexes for this table.org.jdom2.ElementReturn the extended storage for this schemaorg.jdom2.ElementSchema.getExtendedStorage(), as an XML Element.Get an immutable copy of thisSchema.getImportSource(String type, String sourceName) Get theImportSourcewith the given type and name.org.jdom2.ElementgetImportSourceElement(String type, String sourceName) Schema.getImportSource(String, String), as an XML Element.Get all definedImportSources.getImportSources(String type) Get allImportSources of the given type.Return the input table specification from this schema.List<org.jdom2.Element>Schema.getListeners(), with Listeners as XML Elements.Get an immutable list of the Listeners for this schema.List<org.jdom2.Element>Schema.getLoggers(), with Loggers as XML Elements.Get an immutable list of the Loggers for this schema.getMergeCodecName(String mergeFormat) For the specified merge format, return the defined codec name, if any.Get a mutable copy of thisSchema.Get the partitioning key formula for this schema.intGet the StorageType as an integer enum value.getTableType(boolean intraday) Get the table type for this schema, depending on if it was an intraday table or not.getTableTypeV2(boolean intraday) Get the table type for this schema, depending on if it was an intraday table or not.Get an immutable Validator for this schema.booleanReturns true if this schema has any Listeners or LoggerListeners.booleanReturns true if this schema has any Loggers or LoggerListeners.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.schema.TableDefinitionSchema
append
-
Constructor Details
-
InvalidSchema
-
-
Method Details
-
getMutable
Description copied from interface:SchemaGet a mutable copy of thisSchema. The returned copy is guaranteed to be decoupled from this instance, That is, changes to the returnedmutableinstance will not affect this instance.- Specified by:
getMutablein interfaceSchema- Returns:
- A mutable copy of this
Schema.
-
getImmutable
Description copied from interface:SchemaGet an immutable copy of thisSchema. May return itself if it is already immutable.- Specified by:
getImmutablein interfaceSchema- Specified by:
getImmutablein interfaceSchemaXml- Returns:
- An immutable copy of this schema.
-
getImportSources
Description copied from interface:SchemaGet all definedImportSources.- Specified by:
getImportSourcesin interfaceSchema- Returns:
- all defined import sources, might be empty
-
getImportSources
Description copied from interface:SchemaGet allImportSources of the given type.- Specified by:
getImportSourcesin interfaceSchema- Parameters:
type- the import source type- Returns:
- all import sources of the given type, may be null.
-
getImportSource
Description copied from interface:SchemaGet theImportSourcewith the given type and name. The first matching ImportSource is returned, where it is possible to have more than one. If sourceName is null, the first import source of the specified type will be returned.- Specified by:
getImportSourcein interfaceSchema- Parameters:
type- the import source typesourceName- the import source name, may be null- Returns:
- the identified import source, or null if not found
-
getAttributes
Description copied from interface:SchemaGet all top level attributes for this schema.- Specified by:
getAttributesin interfaceSchema- Returns:
- a map containing all attributes set for this schema. Might be empty.
-
getAttributeValue
Description copied from interface:SchemaGet the value for the named attribute.- Specified by:
getAttributeValuein interfaceSchema- Parameters:
attributeName- the attribute to fetch- Returns:
- the value for the attribute, or null if it is not set
-
getPartitionKeyFormula
Description copied from interface:SchemaGet the partitioning key formula for this schema.- Specified by:
getPartitionKeyFormulain interfaceSchema- Returns:
- the partitioning key formula if set, else null
-
hasLoggers
public boolean hasLoggers()Description copied from interface:SchemaReturns true if this schema has any Loggers or LoggerListeners.- Specified by:
hasLoggersin interfaceSchema- Returns:
- true if this schema has any Loggers or LoggerListeners
-
hasListeners
public boolean hasListeners()Description copied from interface:SchemaReturns true if this schema has any Listeners or LoggerListeners.- Specified by:
hasListenersin interfaceSchema- Returns:
- true if this schema has any Listeners or LoggerListeners
-
getLoggers
Description copied from interface:SchemaGet an immutable list of the Loggers for this schema. This includes LoggerListeners.- Specified by:
getLoggersin interfaceSchema- Returns:
- an immutable list of Loggers
-
getListeners
Description copied from interface:SchemaGet an immutable list of the Listeners for this schema. This includes LoggerListeners.- Specified by:
getListenersin interfaceSchema- Returns:
- an immutable list of Listeners
-
getValidator
Description copied from interface:SchemaGet an immutable Validator for this schema.- Specified by:
getValidatorin interfaceSchema- Returns:
- a Validators if configured, or null
-
getNamespace
- Specified by:
getNamespacein interfaceTableDefinitionSchema- Returns:
- The namespace of the table
-
getTableName
- Specified by:
getTableNamein interfaceTableDefinitionSchema- Returns:
- The name of the table
-
getDefaultMergeFormat
- Specified by:
getDefaultMergeFormatin interfaceTableDefinitionSchema- Returns:
- the preferred merge storage format
-
getMergeCodecName
Description copied from interface:TableDefinitionSchemaFor the specified merge format, return the defined codec name, if any.- Specified by:
getMergeCodecNamein interfaceTableDefinitionSchema- Parameters:
mergeFormat- the merge format- Returns:
- the codec name, if defined
-
getNamespaceSet
- Specified by:
getNamespaceSetin interfaceTableDefinitionSchema- Returns:
- The
NamespaceSetto which this schema belongs
-
getTableType
Description copied from interface:TableDefinitionSchemaGet the table type for this schema, depending on if it was an intraday table or not. Note that the intraday setting is ignored for User table types.- Specified by:
getTableTypein interfaceTableDefinitionSchema- Parameters:
intraday- true if the returned type should reflect an intraday table- Returns:
- The table type
-
getTableTypeV2
Description copied from interface:TableDefinitionSchemaGet the table type for this schema, depending on if it was an intraday table or not. The intraday setting is used even for User table types.- Specified by:
getTableTypeV2in interfaceTableDefinitionSchema- Parameters:
intraday- true if the returned type should reflect an intraday table- Returns:
- The table type
-
getVersion
- Specified by:
getVersionin interfaceTableDefinitionSchema- Returns:
- The version of this schema
-
getTableDefinition
- Specified by:
getTableDefinitionin interfaceTableDefinitionSchema- Returns:
- The
TableDefinitioncorresponding to this Schema
-
getTableDescription
- Specified by:
getTableDescriptionin interfaceTableDefinitionSchema- Returns:
- The table description from the schema.
-
getColumnDescriptions
Description copied from interface:TableDefinitionSchemaGet an unmodifiable map of column names to column descriptions. The map may not contain any columns that don't have descriptions.- Specified by:
getColumnDescriptionsin interfaceTableDefinitionSchema- Returns:
- A map of column names to column descriptions
-
getElement
@NotNull public org.jdom2.Element getElement()- Specified by:
getElementin interfaceSchemaXml- Returns:
- The underlying XML element describing this schema.
-
getImportSourceElement
@Nullable public org.jdom2.Element getImportSourceElement(@NotNull String type, @Nullable String sourceName) Description copied from interface:SchemaXmlSchema.getImportSource(String, String), as an XML Element.- Specified by:
getImportSourceElementin interfaceSchemaXml- Parameters:
type- the import source typesourceName- the import source name, may be null- Returns:
- the identified import source, or null if not found
-
getLoggerElements
Description copied from interface:SchemaXmlSchema.getLoggers(), with Loggers as XML Elements.- Specified by:
getLoggerElementsin interfaceSchemaXml- Returns:
- an immutable list of Loggers
-
getListenerElements
Description copied from interface:SchemaXmlSchema.getListeners(), with Listeners as XML Elements.- Specified by:
getListenerElementsin interfaceSchemaXml- Returns:
- an immutable list of Listeners
-
getExtendedStorageElement
@NotNull public org.jdom2.Element getExtendedStorageElement()Description copied from interface:SchemaXmlSchema.getExtendedStorage(), as an XML Element.- Specified by:
getExtendedStorageElementin interfaceSchemaXml- Returns:
- the ExtendedStorage Element if set, or null.
-
getDataIndexSets
Description copied from interface:SchemaGet the set of Data Indexes for this table. Each element in the list is a set of columns which produce a key for which the table has been indexed by.- Specified by:
getDataIndexSetsin interfaceSchema- Returns:
- a list of Data Index sets
-
getStorageType
public int getStorageType()Description copied from interface:TableDefinitionSchemaGet the StorageType as an integer enum value.- Specified by:
getStorageTypein interfaceTableDefinitionSchema- Returns:
- the storage type
-
getExtendedStorage
Description copied from interface:SchemaReturn the extended storage for this schema- Specified by:
getExtendedStoragein interfaceSchema- Returns:
- an ExtendedStorage if present, or null
-
getInputTableStateSpec
Description copied from interface:SchemaReturn the input table specification from this schema.- Specified by:
getInputTableStateSpecin interfaceSchema- Returns:
- The input table specification if present, or null.
-
toString
-