aws / amazon-documentdb-jdbc-driver
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 1,219 units with 10,698 lines of code in units (71.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 10 medium complex units (592 lines of code)
    • 35 simple units (876 lines of code)
    • 1,174 very simple units (9,230 lines of code)
0% | 0% | 5% | 8% | 86%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 5% | 8% | 86%
js0% | 0% | 21% | 8% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata0% | 0% | 17% | 10% | 72%
calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter0% | 0% | 11% | 9% | 78%
common/src/main/java/software/amazon/documentdb/jdbc0% | 0% | 10% | 6% | 83%
ROOT0% | 0% | 21% | 8% | 70%
src/main/java/software/amazon/documentdb/jdbc0% | 0% | <1% | 11% | 87%
common/src/main/java/software/amazon/documentdb/jdbc/common0% | 0% | 0% | 2% | 97%
calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/query0% | 0% | 0% | 26% | 73%
calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/persist0% | 0% | 0% | 0% | 100%
common/src/main/java/software/amazon/documentdb/jdbc/common/utilities0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public String buildSanitizedConnectionString()
in common/src/main/java/software/amazon/documentdb/jdbc/DocumentDbConnectionProperties.java
67 23 0
private static void processArray()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbTableSchemaGenerator.java
133 18 7
private static Operand translateFloor()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter/DocumentDbRules.java
30 14 2
private void joinSameCollection()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter/DocumentDbJoin.java
109 13 5
static
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbDatabaseMetaData.java
35 13 0
function createPerformanceTestRandom()
in createLargeCollection.js
42 12 1
private static String toMongo()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter/DocumentDbAggregate.java
36 12 4
private static boolean hasObjectIdAndLiteral()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter/DocumentDbRules.java
35 12 2
private static void processDocument()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbTableSchemaGenerator.java
85 11 7
public boolean equals()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbMetadataColumn.java
20 11 1
public RexNode convertCall()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/query/DocumentDbQueryMappingService.java
43 10 2
public boolean equals()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbSchemaColumn.java
17 10 1
private static Integer getCharOctetLength()
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbDatabaseMetaData.java
17 10 1
protected Object getValue()
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbResultSet.java
27 9 1
private void performCancel()
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbQueryExecutor.java
53 9 0
public ResultSet getPrimaryKeys()
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbDatabaseMetaData.java
37 9 3
static ImmutableList getFilterColumns()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/calcite/adapter/DocumentDbJoin.java
14 8 1
public boolean equals()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbSchemaTable.java
15 8 1
private static void processComplexTypes()
in calcite-adapter/src/main/java/software/amazon/documentdb/jdbc/metadata/DocumentDbTableSchemaGenerator.java
23 8 9
private static void performExport()
in src/main/java/software/amazon/documentdb/jdbc/DocumentDbMain.java
43 8 3