awslabs / amazon-timestream-driver-jdbc
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 881 units with 5,781 lines of code in units (69.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (303 lines of code)
    • 20 simple units (761 lines of code)
    • 856 very simple units (4,717 lines of code)
0% | 0% | 5% | 13% | 81%
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% | 13% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
jdbc/src/main/java/software/amazon/timestream/jdbc0% | 0% | 5% | 14% | 80%
performancetest/src/main/java/software/amazon/timestream/performancetest0% | 0% | 8% | 4% | 87%
integrationtest/src/main/java/software/amazon/timestream/integrationtest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private List parseArray()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamArray.java
111 17 3
private static Object parseScalarType()
in performancetest/src/main/java/software/amazon/timestream/performancetest/TimestreamSDK.java
36 12 2
public int getColumnDisplaySize()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamResultSetMetaData.java
36 12 1
private void populateCurrentRows()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamColumnsResultSet.java
47 11 0
private AWSCredentialsProvider createCustomCredentialsProvider()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamConnection.java
73 11 2
private List parseRow()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamStruct.java
90 10 3
private void populateCurrentRows()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamTypeInfoResultSet.java
34 10 0
private Properties getProperties()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamDataSource.java
41 10 2
private Properties parseUrl()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamDriver.java
37 10 2
static Datum createDatum()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamDataType.java
35 9 3
public synchronized ResultSet executeQuery()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamStatement.java
78 9 1
static Type createTypeWithMap()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamDataType.java
48 8 3
protected boolean doNextPage()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamResultSet.java
33 8 0
public void run()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamResultSet.java
46 8 0
private void populateCurrentRows()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamArrayResultSet.java
48 8 1
private static void populateBooleanConversions()
in jdbc/src/main/java/software/amazon/timestream/jdbc/Conversions.java
24 8 1
private static Object parseDatum()
in performancetest/src/main/java/software/amazon/timestream/performancetest/TimestreamSDK.java
17 6 2
public boolean absolute()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamBaseResultSet.java
10 6 1
public String getString()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamBaseResultSet.java
25 6 1
static List populateObjectToDatum()
in jdbc/src/main/java/software/amazon/timestream/jdbc/TimestreamStruct.java
29 6 1