[
https://issues.apache.org/jira/browse/CASSANDRA-12367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15461776#comment-15461776
]
Geoffrey Yu commented on CASSANDRA-12367:
-----------------------------------------
[~slebresne]: Are [these
changes|https://github.com/geoffxy/cassandra/compare/trunk...geoffxy:CASSANDRA-12367?w=1]
similar to what you had in mind? It is meant to subtract the offsets between
{{RowIndexedEntry}} objects corresponding to the partition key and the next
partition key in the file, to get a size in bytes.
I also kept the code that reads the partition from the memtable so that it
would be possible for the operator to get information on the partition's
footprint in the memtable as well. However, it also ignores {{Unfiltered}}
objects that are not {{Row}} s.
> Add an API to request the size of a CQL partition
> -------------------------------------------------
>
> Key: CASSANDRA-12367
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12367
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Geoffrey Yu
> Assignee: Geoffrey Yu
> Priority: Minor
> Fix For: 3.x
>
> Attachments: 12367-trunk-v2.txt, 12367-trunk.txt
>
>
> It would be useful to have an API that we could use to get the total
> serialized size of a CQL partition, scoped by keyspace and table, on disk.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)