phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: how can I cast PhoenixArray to ArrayList
Date Tue, 28 Mar 2017 14:21:31 GMT
Sorry, wrong link. PhoenixArray is an implementation of the standard
java.sql.Array JDBC interface:
https://docs.oracle.com/javase/7/docs/api/java/sql/Array.html

On Tue, Mar 28, 2017 at 5:46 AM 袁康(基础平台部) <yuankangkira@didichuxing.com>
wrote:

> I see the doc, but It’s oracle API  . There is getIntArray method to cast
> Oracle Array to int[] .Phoenix array does not hava one
>
> 在 2017年3月27日,22:38,James Taylor <jamestaylor@apache.org> 写道:
>
> The JDBC array is not an ArrayList. See
> http://download.oracle.com/otn_hosted_doc/jdeveloper/905/jdbc-javadoc/oracle/sql/ARRAY.html
>
>
> On Mon, Mar 27, 2017 at 3:50 AM 袁康(基础平台部) <yuankangkira@didichuxing.com>
> wrote:
>
> When I query phoenix in java project
>
> occur:java.lang.ClassCastException:
> org.apache.phoenix.schema.types.PhoenixArray cannot be cast to
> java.util.ArrayList
>
> How can I do the transfer?
>
>
>

Mime
View raw message