awslabs / aws-glue-data-catalog-client-for-apache-hive-metastore
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 595 units with 4,625 lines of code in units (72.2% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (115 lines of code)
    • 33 medium size units (974 lines of code)
    • 86 small units (1,250 lines of code)
    • 474 very small units (2,286 lines of code)
0% | 2% | 21% | 27% | 49%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 2% | 21% | 27% | 49%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore0% | 3% | 29% | 24% | 41%
aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/converters0% | 12% | 5% | 36% | 45%
aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore0% | 0% | 19% | 21% | 58%
aws-glue-datacatalog-spark-client/src/main/java/com/amazonaws/glue/catalog/metastore0% | 0% | 20% | 25% | 53%
aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/util0% | 0% | 10% | 46% | 42%
shims/loader/src/main/java/com/amazonaws/glue/shims0% | 0% | 0% | 66% | 33%
shims/spark-hive-shims/src/main/java/com/amazonaws/glue/shims0% | 0% | 0% | 0% | 100%
shims/hive2-shims/src/main/java/com/amazonaws/glue/shims0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private List batchCreatePartitions()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
62 12 2
public static Partition convertPartition()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/converters/CatalogToHiveConverter.java
53 8 1
public void renamePartition()
in aws-glue-datacatalog-spark-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
47 10 4
public void renamePartition()
in aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
47 10 4
private List batchDeletePartitions()
in aws-glue-datacatalog-spark-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
45 10 5
private List batchDeletePartitions()
in aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
45 10 5
public void alterTable()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
40 12 4
private List getPartitionsParallel()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/DefaultAWSGlueMetastore.java
40 8 4
public void dropTable()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
39 11 5
public void createIndex()
in aws-glue-datacatalog-spark-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
36 6 2
public void createIndex()
in aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
36 6 2
public AWSGlueMetastoreCacheDecorator()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/AWSGlueMetastoreCacheDecorator.java
34 3 3
public void dropDatabase()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
34 9 4
public List getAllDatabases()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/AWSGlueMetastoreCacheDecorator.java
31 5 0
public boolean dropPartition()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
31 5 6
public List getPartitionsByNames()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/DefaultAWSGlueMetastore.java
31 5 3
public AWSGlue newClient()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/AWSGlueClientFactory.java
29 5 0
public GetAllFunctionsResponse getAllFunctions()
in aws-glue-datacatalog-hive2-client/src/main/java/com/amazonaws/glue/catalog/metastore/AWSCatalogMetastoreClient.java
26 5 0
public void alterPartitions()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
26 6 3
public List getPartitionsByNames()
in aws-glue-datacatalog-client-common/src/main/java/com/amazonaws/glue/catalog/metastore/GlueMetastoreClientDelegate.java
24 4 3