Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0A1A18181 for ; Thu, 16 Jul 2015 07:48:09 +0000 (UTC) Received: (qmail 45109 invoked by uid 500); 16 Jul 2015 07:48:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 45072 invoked by uid 500); 16 Jul 2015 07:48:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 45057 invoked by uid 99); 16 Jul 2015 07:48:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 07:48:04 +0000 Date: Thu, 16 Jul 2015 07:48:04 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-9828) Minor improvements to RowStats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sylvain Lebresne created CASSANDRA-9828: ------------------------------------------- Summary: Minor improvements to RowStats Key: CASSANDRA-9828 URL: https://issues.apache.org/jira/browse/CASSANDRA-9828 Project: Cassandra Issue Type: Sub-task Reporter: Sylvain Lebresne Assignee: Sylvain Lebresne Priority: Minor Fix For: 3.0 beta 1 There is some small improvements/refactor I'd like to do for {{RowStats}}. More specifically, I'm attaching 3 commits: # the first one merely rename {{RowStats}} to {{EncodingStats}}. {{RowStats}} was not a terribly helpful name while {{EncodingStats}} at least give a sense of why the thing exists. # the 2nd one improve the serialization of those {{EncodingStats}}. {{EncodingStats}} holds both a {{minTimestamp}} and a {{minLocalDeletionTime}}, both of which are unix timestamp (or at least should be almost all the time for the timestamp by convention) and so are fairly big numbers that don't get much love (if any) from vint encoding. So the patch introducing hard-coded epoch numbers for both that roughly correspond to now, and substract that to the actual {{EncodingStats}} number to make it more rip for vint encoding. It does mean the exact encoding size will deteriorate over time, but it'll take a while before it becomes useless and we'll probably have more more change to the encodings by then anyway (and/or we can change the epoch number regularly with new versions of the messaging protocol if we so wish). # the last patch is just a small simple cleanup. -- This message was sent by Atlassian JIRA (v6.3.4#6332)