Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> coprocessorExec got stucked with generic type


Copy link to this message
-
Re: coprocessorExec got stucked with generic type
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<http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true>
 obj).
  Pavel
2013/6/10 Pavel Hančar <[EMAIL PROTECTED]>

>   Hello,
> can I return from an EndPoint a generic type? I try to return
> ArrayList<NameAndDistance> 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čar
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB