aws / amazon-redshift-jdbc-driver
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 3,035 units with 37,624 lines of code in units (55.4% of code).
    • 38 very long units (9,464 lines of code)
    • 65 long units (4,373 lines of code)
    • 258 medium size units (7,872 lines of code)
    • 419 small units (6,104 lines of code)
    • 2,255 very small units (9,811 lines of code)
25% | 11% | 20% | 16% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java25% | 11% | 20% | 16% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
redshift/translation97% | 0% | <1% | <1% | 1%
redshift/jdbc20% | 13% | 20% | 18% | 27%
redshift/core23% | 14% | 21% | 15% | 24%
redshift/plugin12% | 25% | 34% | 10% | 16%
redshift18% | 10% | 23% | 9% | 37%
redshift/ssl14% | 22% | 33% | 17% | 11%
redshift/util0% | 12% | 26% | 22% | 38%
redshift/ds0% | 5% | 20% | 12% | 61%
redshift/gss0% | 43% | 47% | 0% | 8%
redshift/logger0% | 0% | 46% | 30% | 23%
redshift/xa0% | 0% | 56% | 21% | 22%
redshift/jre70% | 0% | 71% | 16% | 11%
redshift/replication0% | 0% | 21% | 9% | 69%
redshift/largeobject0% | 0% | 15% | 27% | 57%
redshift/copy0% | 0% | 14% | 36% | 48%
redshift/osgi0% | 0% | 43% | 25% | 31%
redshift/sspi0% | 0% | 26% | 52% | 20%
redshift/geometric0% | 0% | 4% | 37% | 58%
redshift/hostchooser0% | 0% | 0% | 67% | 32%
redshift/fastpath0% | 0% | 0% | 47% | 52%
redshift/httpclient0% | 0% | 0% | 100% | 0%
redshift/jdbc20% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static
in src/main/java/com/amazon/redshift/translation/messages_ja.java
576 1 0
public ResultSet getProcedureColumns()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
520 15 4
private String buildLocalSchemaColumnsQuery()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
448 13 4
private void processResultsOnThread()
in src/main/java/com/amazon/redshift/core/v3/QueryExecutorImpl.java
422 121 7
static
in src/main/java/com/amazon/redshift/translation/messages_bg.java
402 1 0
public ResultSet getFunctionColumns()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
386 15 4
static
in src/main/java/com/amazon/redshift/translation/messages_pt_BR.java
346 1 0
static
in src/main/java/com/amazon/redshift/translation/messages_tr.java
346 1 0
static
in src/main/java/com/amazon/redshift/translation/messages_sr.java
344 1 0
static
in src/main/java/com/amazon/redshift/translation/messages_fr.java
292 1 0
static
in src/main/java/com/amazon/redshift/translation/messages_de.java
292 1 0
private String buildExternalSchemaColumnsQuery()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
277 7 4
static
in src/main/java/com/amazon/redshift/translation/messages_it.java
276 1 0
public static List parseJdbcSql()
in src/main/java/com/amazon/redshift/core/Parser.java
270 103 7
private String buildUniversalSchemaColumnsQuery()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
260 7 4
public T getObject()
in src/main/java/com/amazon/redshift/jdbc/RedshiftResultSet.java
259 85 2
private String buildUniversalAllSchemaColumnsQuery()
in src/main/java/com/amazon/redshift/jdbc/RedshiftDatabaseMetaData.java
256 7 4
static
in src/main/java/com/amazon/redshift/translation/messages_zh_CN.java
230 1 0
static
in src/main/java/com/amazon/redshift/translation/messages_zh_TW.java
230 1 0
private Object buildArray()
in src/main/java/com/amazon/redshift/jdbc/RedshiftArray.java
222 115 3