Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E7D5D200B16 for ; Mon, 20 Jun 2016 19:06:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E674E160A67; Mon, 20 Jun 2016 17:06:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 62935160A55 for ; Mon, 20 Jun 2016 19:06:06 +0200 (CEST) Received: (qmail 22112 invoked by uid 500); 20 Jun 2016 17:06:05 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 21980 invoked by uid 99); 20 Jun 2016 17:06:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 17:06:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 665CD2C1F64 for ; Mon, 20 Jun 2016 17:06:05 +0000 (UTC) Date: Mon, 20 Jun 2016 17:06:05 +0000 (UTC) From: "Alexey Goncharuk (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-3227) IgniteCache: add method to calculate size per partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Jun 2016 17:06:07 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15339916#comment-15339916 ] Alexey Goncharuk commented on IGNITE-3227: ------------------------------------------ Hi Saikat, Please also correct the test. I see that you test new methods for LOCAL cache, but LOCAL cache has only one partition. You can calculate how many keys should go into each partition using IgniteAffinity methods and use calculated values to verify new methods. > IgniteCache: add method to calculate size per partition > ------------------------------------------------------- > > Key: IGNITE-3227 > URL: https://issues.apache.org/jira/browse/IGNITE-3227 > Project: Ignite > Issue Type: Improvement > Reporter: Denis Magda > Assignee: Saikat Maitra > Labels: community, important > > It makes sense to add size calculation per partition. Actually the following methods should be added to the {{IgniteCache}} API. > {code} > public int size(int partition, CachePeekMode... peekModes) throws CacheException; > public int localSize(int partition, CachePeekMode... peekModes); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)