Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82FBE10768 for ; Mon, 10 Jun 2013 13:11:55 +0000 (UTC) Received: (qmail 52153 invoked by uid 500); 10 Jun 2013 13:11:51 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 52094 invoked by uid 500); 10 Jun 2013 13:11:46 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 52086 invoked by uid 99); 10 Jun 2013 13:11:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 13:11:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavel.hancar@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pb0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 13:11:39 +0000 Received: by mail-pb0-f54.google.com with SMTP id ro2so7263680pbb.13 for ; Mon, 10 Jun 2013 06:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ol1/FuCHG16B11k9u8wHQNaRwjSe772Q8rKc4vtr9gM=; b=UvMDCKS/jf3ajLKxr5mfnKxj6HpIrW/KPeurngAXSkEfbazrHbia+/aoL+BOUQKud+ Nvju9estlofru3gPd7F6fnPUHS6zL468g/MkZmr3nSWy6e+c4+3+YwwYZvs/Gh59o+I8 FiWTBWSCr1srGN8fDDdaZSufnf26VnJhxdMpvBfML0qm9wMtmKu27kPU5EunOx3ig9z7 BUXm+QmzjX8We4UbZaWed7k0ee5+C8pk4UfIgh/2B019kw5+4mmi127GN2OENunL4qyz DuxzUEEX2gYqfUak2V3sxhwuoT0r4HOakXMCvYxkUD7qW1ivZGl/W4RWw5Y1LQm1Zkmx Jymg== MIME-Version: 1.0 X-Received: by 10.66.13.8 with SMTP id d8mr14502306pac.4.1370869879592; Mon, 10 Jun 2013 06:11:19 -0700 (PDT) Received: by 10.68.134.170 with HTTP; Mon, 10 Jun 2013 06:11:19 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 Jun 2013 15:11:19 +0200 Message-ID: Subject: Re: coprocessorExec got stucked with generic type From: =?ISO-8859-2?Q?Pavel_Han=E8ar?= To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec51ddb2534de2404decc843f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51ddb2534de2404decc843f Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable I see, that's probably big nonsense to return ArrayList (or array) of another classes from coprocessor, because it's a list of pointers. The solution is to serialize it to byte[] by SerializationUtils.serialize( Serializable obj). Pavel 2013/6/10 Pavel Han=E8ar > Hello, > can I return from an EndPoint a generic type? I try to return > ArrayList from an EndPoint method (where NameAndDistance > is a simpe class with two public variables name and distance). But when I > return unempty ArrayList, the coprocessorExec get stucked. > Thanks, > Pavel Han=E8ar > --bcaec51ddb2534de2404decc843f--