Skip to content

Commit

Permalink
Added deleted rows to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Zemek committed Aug 8, 2018
1 parent a026a59 commit 4c8c0ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Summary: Summary statistics about partitions
|----------------------------------------------|----------------------------------------------------------|
| Count (Size) | Number of partition keys on this node |
| Rows (Size) | Number of clustering rows |
| (deleted) | Number of clustering row deletions |
| Total (Size) | Total uncompressed size of all partitions on this node |
| Total (SSTable) | Number of sstables on this node |
| Minimum (Size) | Minimum uncompressed partition size |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static void main(String[] args) {
long maxPartitionSize = 0;
long partitionCount = 0;
long rowCount = 0;
long rowDeleteCount = 0;
long totalPartitionSize = 0;
int minTables = Integer.MAX_VALUE;
int maxTables = 0;
Expand Down Expand Up @@ -173,6 +174,7 @@ public static void main(String[] args) {
maxTables = Math.max(maxTables, pStats.tableCount);
totalTables += pStats.tableCount;
rowCount += pStats.rowCount;
rowDeleteCount += pStats.rowDeleteCount;
partitionCount++;
}

Expand All @@ -183,6 +185,7 @@ public static void main(String[] args) {
tb.setHeader("", "Size", "SSTable");
tb.addRow("Count", Long.toString(partitionCount), "");
tb.addRow("Rows", Long.toString(rowCount), "");
tb.addRow("(deleted)", Long.toString(rowDeleteCount), "");
tb.addRow("Total", Util.humanReadableByteCount(totalPartitionSize), Integer.toString(sstableReaders.size()));
tb.addRow("Minimum", Util.humanReadableByteCount(minPartitionSize), Integer.toString(minTables));
tb.addRow("Maximum", Util.humanReadableByteCount(maxPartitionSize), Integer.toString(maxTables));
Expand Down

0 comments on commit 4c8c0ca

Please sign in to comment.