Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39EBF181B2 for ; Fri, 21 Aug 2015 06:48:24 +0000 (UTC) Received: (qmail 76926 invoked by uid 500); 21 Aug 2015 06:48:24 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 76889 invoked by uid 500); 21 Aug 2015 06:48:24 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 76880 invoked by uid 99); 21 Aug 2015 06:48:24 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 06:48:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8EB5BC0C0C for ; Fri, 21 Aug 2015 06:48:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.775 X-Spam-Level: * X-Spam-Status: No, score=1.775 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vKjcMp-pIuJF for ; Fri, 21 Aug 2015 06:48:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 3701725CF4 for ; Fri, 21 Aug 2015 06:48:21 +0000 (UTC) Received: (qmail 76791 invoked by uid 99); 21 Aug 2015 06:48:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2015 06:48:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6DA91E0FBC; Fri, 21 Aug 2015 06:48:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Fri, 21 Aug 2015 06:49:01 -0000 Message-Id: <5247ee23800d456eaed49986e5f48cdf@git.apache.org> In-Reply-To: <154c82fbbc854da08bd05298934ca8d2@git.apache.org> References: <154c82fbbc854da08bd05298934ca8d2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [43/45] incubator-ignite git commit: ignite-1258: fixed PortableObject documentation ignite-1258: fixed PortableObject documentation Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e2425880 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e2425880 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e2425880 Branch: refs/heads/ignite-1258 Commit: e2425880caaec2f19182751dd428c9c1272ce879 Parents: 6b0ac2c Author: Denis Magda Authored: Thu Aug 20 16:27:12 2015 +0300 Committer: Denis Magda Committed: Thu Aug 20 16:27:12 2015 +0300 ---------------------------------------------------------------------- .../org/apache/ignite/portable/PortableObject.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e2425880/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java b/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java index b62b675..c22892d 100644 --- a/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java +++ b/modules/core/src/main/java/org/apache/ignite/portable/PortableObject.java @@ -46,21 +46,7 @@ import java.util.*; * * String field = val.field("myFieldName"); * - * Alternatively, we could also choose a hybrid approach, where, for example, - * the keys are concrete deserialized objects and the values are returned in portable - * format, like so: - *
- * IgniteCache<MyKey, PortableObject> prj = cache.withKeepPortable();
- *
- * PortableObject val = prj.get(new MyKey());
- *
- * String field = val.field("myFieldName");
- * 
- * We could also have the values as concrete deserialized objects and the keys in portable format, - * but such use case is a lot less common because cache keys are usually a lot smaller than values, and - * it may be very cheap to deserialize the keys, but not the values. - *

- * And finally, if we have class definitions in the classpath, we may choose to work with deserialized + * Alternatively, if we have class definitions in the classpath, we may choose to work with deserialized * typed objects at all times. In this case we do incur the deserialization cost. However, if * {@link PortableMarshaller#isKeepDeserialized()} is {@code true} then Ignite will only deserialize on the first access * and will cache the deserialized object, so it does not have to be deserialized again: