Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 3 | 29.0% | 60.000004% | 11.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.segment.DataSourceSegment org.apache.shardingsphere.distsql.segment.DistSQLSegment |
org.apache.shardingsphere.distsql.segment.AlgorithmSegment org.apache.shardingsphere.distsql.segment.HostnameAndPortBasedDataSourceSegment org.apache.shardingsphere.distsql.segment.ReadOrWriteSegment org.apache.shardingsphere.distsql.segment.TransmissionRuleSegment org.apache.shardingsphere.distsql.segment.URLBasedDataSourceSegment |
org.apache.shardingsphere.distsql.segment.converter org.apache.shardingsphere.distsql.statement.ral.updatable |
java.lang java.util org.apache.shardingsphere.sql.parser.api |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 5 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.segment.converter.DataSourceSegmentsConverter |
None | java.lang java.util org.apache.shardingsphere.distsql.segment org.apache.shardingsphere.infra.database.core.type org.apache.shardingsphere.infra.datasource.pool.props.domain |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
4 | 1 | 100.0% | 20.0% | 20.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.DistSQLStatement |
None | org.apache.shardingsphere.distsql.statement.ral org.apache.shardingsphere.distsql.statement.rdl org.apache.shardingsphere.distsql.statement.rql org.apache.shardingsphere.distsql.statement.rul |
org.apache.shardingsphere.sql.parser.statement.core.statement |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 2 | 100.0% | 50.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.ral.FeaturedRALStatement org.apache.shardingsphere.distsql.statement.ral.RALStatement |
None | org.apache.shardingsphere.distsql.statement.ral.queryable org.apache.shardingsphere.distsql.statement.ral.updatable |
java.lang org.apache.shardingsphere.distsql.statement |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
3 | 1 | 100.0% | 25.0% | 25.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.ral.queryable.QueryableRALStatement |
None | org.apache.shardingsphere.distsql.statement.ral.queryable.convert org.apache.shardingsphere.distsql.statement.ral.queryable.export org.apache.shardingsphere.distsql.statement.ral.queryable.show |
org.apache.shardingsphere.distsql.statement.ral |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 2 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.statement.ral.queryable.convert.ConvertYamlConfigurationStatement |
None | java.lang org.apache.shardingsphere.distsql.statement.ral.queryable |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 5 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.statement.ral.queryable.export.ExportDatabaseConfigurationStatement org.apache.shardingsphere.distsql.statement.ral.queryable.export.ExportMetaDataStatement org.apache.shardingsphere.distsql.statement.ral.queryable.export.ExportStorageNodesStatement |
None | java.lang java.util org.apache.shardingsphere.distsql.statement.ral.queryable org.apache.shardingsphere.sql.parser.statement.core.segment.generic org.apache.shardingsphere.sql.parser.statement.core.statement.available |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 5 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowComputeNodeInfoStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowComputeNodeModeStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowComputeNodesStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowDistVariableStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowDistVariablesStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowPluginsStatement org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowTableMetaDataStatement |
None | java.lang java.util org.apache.shardingsphere.distsql.statement.ral.queryable org.apache.shardingsphere.sql.parser.statement.core.segment.generic org.apache.shardingsphere.sql.parser.statement.core.statement.available |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 4 | 8.0% | 100.0% | 8.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.ral.updatable.UpdatableRALStatement |
org.apache.shardingsphere.distsql.statement.ral.updatable.AlterComputeNodeStatement org.apache.shardingsphere.distsql.statement.ral.updatable.ImportDatabaseConfigurationStatement org.apache.shardingsphere.distsql.statement.ral.updatable.ImportMetaDataStatement org.apache.shardingsphere.distsql.statement.ral.updatable.LabelComputeNodeStatement org.apache.shardingsphere.distsql.statement.ral.updatable.LockClusterStatement org.apache.shardingsphere.distsql.statement.ral.updatable.RefreshDatabaseMetaDataStatement org.apache.shardingsphere.distsql.statement.ral.updatable.RefreshTableMetaDataStatement org.apache.shardingsphere.distsql.statement.ral.updatable.SetComputeNodeStateStatement org.apache.shardingsphere.distsql.statement.ral.updatable.SetDistVariableStatement org.apache.shardingsphere.distsql.statement.ral.updatable.UnlabelComputeNodeStatement org.apache.shardingsphere.distsql.statement.ral.updatable.UnlockClusterStatement |
None | java.lang java.util org.apache.shardingsphere.distsql.segment org.apache.shardingsphere.distsql.statement.ral |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 1 | 100.0% | 33.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.RDLStatement |
None | org.apache.shardingsphere.distsql.statement.rdl.resource org.apache.shardingsphere.distsql.statement.rdl.rule |
org.apache.shardingsphere.distsql.statement |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 1 | 100.0% | 50.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.resource.ResourceDefinitionStatement |
None | org.apache.shardingsphere.distsql.statement.rdl.resource.unit |
org.apache.shardingsphere.distsql.statement.rdl |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 1 | 100.0% | 50.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.resource.unit.StorageUnitDefinitionStatement |
None | org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type |
org.apache.shardingsphere.distsql.statement.rdl.resource |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 2 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.AlterStorageUnitStatement org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.RegisterStorageUnitStatement org.apache.shardingsphere.distsql.statement.rdl.resource.unit.type.UnregisterStorageUnitStatement |
None | java.util org.apache.shardingsphere.distsql.statement.rdl.resource.unit |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 1 | 100.0% | 33.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.rule.RuleDefinitionStatement |
None | org.apache.shardingsphere.distsql.statement.rdl.rule.database org.apache.shardingsphere.distsql.statement.rdl.rule.global |
org.apache.shardingsphere.distsql.statement.rdl |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 2 | 100.0% | 100.0% | 100.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.rule.aware.StaticDataSourceContainedRuleAwareStatement |
None | None | java.lang java.util |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 1 | 100.0% | 50.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.rule.database.DatabaseRuleDefinitionStatement |
None | org.apache.shardingsphere.distsql.statement.rdl.rule.database.type |
org.apache.shardingsphere.distsql.statement.rdl.rule |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 1 | 100.0% | 100.0% | 100.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.rule.database.type.AlterRuleStatement org.apache.shardingsphere.distsql.statement.rdl.rule.database.type.CreateRuleStatement org.apache.shardingsphere.distsql.statement.rdl.rule.database.type.DropRuleStatement |
None | None | org.apache.shardingsphere.distsql.statement.rdl.rule.database |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 1 | 100.0% | 100.0% | 100.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rdl.rule.global.GlobalRuleDefinitionStatement |
None | None | org.apache.shardingsphere.distsql.statement.rdl.rule |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 1 | 100.0% | 33.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rql.RQLStatement |
None | org.apache.shardingsphere.distsql.statement.rql.resource org.apache.shardingsphere.distsql.statement.rql.rule |
org.apache.shardingsphere.distsql.statement |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 5 | 50.0% | 100.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rql.resource.ResourceQueryStatement org.apache.shardingsphere.distsql.statement.rql.resource.ShowTablesStatement |
org.apache.shardingsphere.distsql.statement.rql.resource.ShowLogicalTablesStatement org.apache.shardingsphere.distsql.statement.rql.resource.ShowStorageUnitsStatement |
None | java.lang java.util org.apache.shardingsphere.distsql.statement.rql org.apache.shardingsphere.sql.parser.statement.core.segment.generic org.apache.shardingsphere.sql.parser.statement.core.statement.available |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
2 | 1 | 100.0% | 33.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rql.rule.RuleQueryStatement |
None | org.apache.shardingsphere.distsql.statement.rql.rule.database org.apache.shardingsphere.distsql.statement.rql.rule.global |
org.apache.shardingsphere.distsql.statement.rql |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 5 | 33.0% | 100.0% | 33.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rql.rule.database.ShowDatabaseRulesStatement |
org.apache.shardingsphere.distsql.statement.rql.rule.database.CountRuleStatement org.apache.shardingsphere.distsql.statement.rql.rule.database.ShowRulesUsedStorageUnitStatement |
None | java.lang java.util org.apache.shardingsphere.distsql.statement.rql.rule org.apache.shardingsphere.sql.parser.statement.core.segment.generic org.apache.shardingsphere.sql.parser.statement.core.statement.available |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 1 | 100.0% | 100.0% | 100.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rql.rule.global.ShowGlobalRulesStatement |
None | None | org.apache.shardingsphere.distsql.statement.rql.rule |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
1 | 1 | 100.0% | 50.0% | 50.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
org.apache.shardingsphere.distsql.statement.rul.RULStatement |
None | org.apache.shardingsphere.distsql.statement.rul.sql |
org.apache.shardingsphere.distsql.statement |
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance |
---|---|---|---|---|
0 | 2 | 0.0% | 100.0% | 0.0% |
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages |
---|---|---|---|
None | org.apache.shardingsphere.distsql.statement.rul.sql.FormatStatement org.apache.shardingsphere.distsql.statement.rul.sql.ParseStatement org.apache.shardingsphere.distsql.statement.rul.sql.PreviewStatement |
None | java.lang org.apache.shardingsphere.distsql.statement.rul |
Term | Description |
---|---|
Number of Classes | The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package. |
Afferent Couplings | The number of other packages that depend upon classes within the package is an indicator of the package's responsibility. |
Efferent Couplings | The number of other packages that the classes in the package depend upon is an indicator of the package's independence. |
Abstractness | The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package. |
Instability | The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change. The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package. |
Distance | The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible. |
Cycles | Packages participating in a package dependency cycle are in a deadly embrace with respect to reusability and their release cycle. Package dependency cycles can be easily identified by reviewing the textual reports of dependency cycles. Once these dependency cycles have been identified with JDepend, they can be broken by employing various object-oriented techniques. |