From user-return-19633-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Jun 7 11:17:42 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 61D14180663 for ; Thu, 7 Jun 2018 11:17:41 +0200 (CEST) Received: (qmail 96474 invoked by uid 500); 7 Jun 2018 09:17:40 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 96464 invoked by uid 99); 7 Jun 2018 09:17:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2018 09:17:40 +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 D48F7C0100 for ; Thu, 7 Jun 2018 09:17:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.119 X-Spam-Level: ** X-Spam-Status: No, score=2.119 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id daL4KJv__ktQ for ; Thu, 7 Jun 2018 09:17:38 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 829015F21E for ; Thu, 7 Jun 2018 09:17:38 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id x6-v6so16438130wmc.3 for ; Thu, 07 Jun 2018 02:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=R4pJqjnYf+G8a8GwrV82z7WlyjEz1I+9Krg/SEbo/C8=; b=rZAliVuTtq4mKpDbmUzlFnMtKgpIJtJSiwLZnWwch5Kj2uVC1hIfnJjIbjtUtZrtey nkIh3MDxQvLwbdZDBmJAVQyAckRIydz3DX4pwfBu1S602PTqntEmXquKA9Fo/FlheijA rApskiBMlsg1bGCGU7somriI8451ZcUWUhPI2obRl45icGmdmJ6SBMRRyg5johf/cg90 VPStfr9dgCAkBZr1K/6xknES0KeMLb8sXD7AOkqnoz0/knHqWdZSbAEspJkH7aTPZcjS C+OgsQ6fUYkEVS1lh9WqKFtz4L7kHQmeYc/FrUacsVAjG3mVLz7ULjQUntm9CkvPetlk HZXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=R4pJqjnYf+G8a8GwrV82z7WlyjEz1I+9Krg/SEbo/C8=; b=tktZlo6GfNAsWEDYdxbqyVb6n+ohpwEAnezcfSXLNgI4eJ91tH4G0KRGTJTc0BU6fy DF/X+zku0VzRpcFz7I0C2kQXYPmvTM9IwV469DhxIFprB1Uw+lN+I4BmVT66Eow6wqld nM/Ys+ONspdFkmgkpwc3fMpT9+0ec21PbG6/oeRPiQY/RRdWRx8SnMc2EGEYXsnxOryf HtrdncimWwXfNB/gDnde96HqkEoIqqDNgFqDVfi6OWNfGsx3x5aHWMj5+upVUFTVGGcs BB3uX2r5K7Lh5m6z8/A7iXRDtpK3itIVA6f8+TDCk6ZWnGF4fZItyYfNU9Dm/b9YcY/o HY1w== X-Gm-Message-State: APt69E16PCGmgyAUbYj851GwdBnrFZ0eSCd9VsUxlboArZmVmJEmaWgl 7ffDYmTv/3Oij7JEqUZrlKraIjCf4iiWxWtNbEil4g== X-Google-Smtp-Source: ADUXVKI7UJA6al5AmVr1pg4vpwzHU5IlwXUkRJI3qbXJlP5Z6lQWs55/hxCZOKZXz4xkM2bx7//qi//poLbd2GOyGzQ= X-Received: by 2002:a1c:e306:: with SMTP id a6-v6mr931768wmh.15.1528363057482; Thu, 07 Jun 2018 02:17:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "F.D." Date: Thu, 7 Jun 2018 11:17:26 +0200 Message-ID: Subject: Re: BinaryStringArrayWriter / BinaryStringArrayReader To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="000000000000210f81056e09c18f" --000000000000210f81056e09c18f Content-Type: text/plain; charset="UTF-8" Perfect! Thanks F.D. On Mon, Jun 4, 2018 at 12:38 PM Igor Sapego wrote: > Hi, > > Yes, you can use BinaryStringArrayWriter / BinaryStringArrayReader. > > No, to get BinaryStringArrayReader, you should use method > BinaryReader::ReadStringArray(const char* fieldName); > > Best Regards, > Igor > > On Sun, Jun 3, 2018 at 1:31 AM, F.D. wrote: > >> Hi, >> >> I'm trying to develop a distributed closure in C++. The return type of my >> closure is a std::vector>, so I think that I have to implement >> a BinaryType to serialize it. The question is: in the Write and Read >> methods can I use the BinaryStringArrayWriter / BinaryStringArrayReader or >> I have to use my own solution? >> >> And If I can, the first argument (impl::binary::BinaryReaderImpl *impl) >> is the first argoment of my method Read (BinaryReader &reader)? >> >> Thanks, >> F.D. >> > > --000000000000210f81056e09c18f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Perfect!

Thanks
=C2=A0 =C2=A0= F.D.

On Mon, Jun= 4, 2018 at 12:38 PM Igor Sapego <= isapego@apache.org> wrote:
<= div dir=3D"ltr">Hi,

Yes, you can use=C2=A0BinaryStringArrayWriter / BinaryStringArrayReader.

No, to get=C2=A0BinaryStringArrayReader, you should use method=C2=A0
BinaryReader::ReadStri= ngArray(const char* fieldName);

Best Regards,
Igor

On Sun, Jun 3, 2018 at 1:31 AM, F.D. <free.devel.70@gmail.com> wrote:
Hi,

I'm tr= ying to develop a distributed closure in C++. The return type of my closure= is a std::vector<std::string>>, so I think that I have to impleme= nt a BinaryType to serialize it. The question is: in the Write and Read met= hods can I use the=C2=A0BinaryStringArrayWriter / BinaryStringArrayReader o= r I have to use my own solution?

And If I can, the= first argument (impl::binary::BinaryReaderImpl *imp= l) is the first argoment of my method Read (BinaryReader &reader)?

Thanks,
=C2=A0 =C2=A0F.D.

--000000000000210f81056e09c18f--