Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D93A418212 for ; Wed, 9 Dec 2015 08:02:36 +0000 (UTC) Received: (qmail 52547 invoked by uid 500); 9 Dec 2015 08:02:36 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 52505 invoked by uid 500); 9 Dec 2015 08:02:36 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 52492 invoked by uid 99); 9 Dec 2015 08:02:36 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 08:02:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E56EA180985 for ; Wed, 9 Dec 2015 08:02:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id oq2m10-sWrSW for ; Wed, 9 Dec 2015 08:02:30 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id A92D021270 for ; Wed, 9 Dec 2015 08:02:29 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so25117705lbb.3 for ; Tue, 08 Dec 2015 23:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=w2pjOxoOaqxjG9BxVZo+W1n1MzFR5pvydxI1NWaHbkw=; b=oTQbeJH0w4PArFOU98q9zEIkHzKzRrAqV/IzS9Wlli8PzduOYK9GgAoW9428x6XNzD DSeT0Fs4hbdGUfkJS9yjhRrOBwrff3E0XyWUOnWBtu/ZdSb4FAcHQHQjb9K6ywA76rnl ROsDcrkWsmDGnuFiP90+HS+NJqQUdTlj+S2mYEtaLtBeLSDw4rBQgrMiJ7J87EvSXCyb NWxa5VGRXb4Z5uO0VFzM7Plmc0WGuaXUfi5vBND2YltXuFbiH5mXMY7Bk15nxlj1/hNK cmM/j8aViHWAN76djjlsYckAqJMBRKhX6ImxnWiV8cHhTWmq24FzYGYsMDcTTExy+aU0 EEYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=w2pjOxoOaqxjG9BxVZo+W1n1MzFR5pvydxI1NWaHbkw=; b=mb3LugexS6NaNypFQKfT4gKPl+Gu+cBGIVI/7XLvvN40aQmozDDGax0utVJ5/MnxPH 4+BHkBF8eK9grvPYEtNnEOnBiqCMayZmoDyVtMTuiUSaTCziSXkZvLGmOvigLjkDAytx KHEewTJsfP6IJTDtPX5/orpx43cVNYTI156YanjrwaLRBqVL1VPH7dDzmy5ruFpkm0hU 3AOUjm2QJcBByibdK9XJEkZiaZ8oNHushPAupe6/GkKCeFbwmS1x/2LLmLGtfaFeqgCq zKKCh/TUbVtQKhtfazWjUYZGcREs44ZP5HbQ1nuxK+sjWgSQQJXKslAiy2S5akTXBN/S naPA== X-Gm-Message-State: ALoCoQmEABA+RTSeO6oyo1blXyDrau2LLNhNJJuMwS7xjA/Ar4Gy/YX0Ky8D2R02VVhXdnlQqW3JQC0Za1rkRIeD1dZ+T6SiLK0ENvFxThYID507dwgRCq8= MIME-Version: 1.0 X-Received: by 10.112.219.197 with SMTP id pq5mr1524764lbc.73.1449647847634; Tue, 08 Dec 2015 23:57:27 -0800 (PST) Received: by 10.114.77.102 with HTTP; Tue, 8 Dec 2015 23:57:27 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Dec 2015 10:57:27 +0300 Message-ID: Subject: Re: Handling collections in BinaryMarshaller From: Vladimir Ozerov To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11c25c5a021a0105267271c3 --001a11c25c5a021a0105267271c3 Content-Type: text/plain; charset=UTF-8 Dmitriy, Correct. This is what I meant. On Tue, Dec 8, 2015 at 10:26 PM, Dmitriy Setrakyan wrote: > Vladimir, > > I believe the default collections in Java and .NET should be supported out > of the box. Moreover, if we know the collection type, e.g. HashMap, we can > always provide a more efficient way of serializing it ourselves, in the > Binary marshaller. > > Is this something you had in mind, or were you proposing something > different. > > D. > > On Tue, Dec 8, 2015 at 6:29 AM, Vladimir Ozerov > wrote: > > > Alex, > > > > What interface do you mean? If user has collection field in class and > > explicitly call BinaryWriter.writeCollection(), we can leave current > > interoperability support - it is not a problem. > > As per your second point - user could pass collections e.g. as argument > to > > Java task started from .NET. This is where we will loose interoperabiltiy > > and will force user to create some wrappers. But these are very specific > > use cases. > > > > BTW, proposed solution is almost exactly how we work with collections in > > .NET. > > > > On Tue, Dec 8, 2015 at 4:57 PM, Alexey Goncharuk < > > alexey.goncharuk@gmail.com > > > wrote: > > > > > I like the idea, however it has obvious downsides. First, if a user > class > > > contains a collection, we force user to implement additional interface, > > > even if the collection is a simple ArrayList. Second, I do not see how > > this > > > plain collection can be the value for the cache - user will always need > > to > > > write a wrapper/containing class around it. > > > > > > I think we should provide minimum support for basic types - HashMap, > > > LinkedHashMap, ArrayList and treat other classes the way Vladimir > > > described. > > > > > > --001a11c25c5a021a0105267271c3--