You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Sumit Nigam <su...@yahoo.com> on 2016/01/18 13:53:17 UTC

Number of splits

Hi,
Is there an easy way to know the number of splits a Phoenix table has? Preferably through JDBC metadata API?
Thanks,Sumit

Re: Number of splits

Posted by Matt Kowalczyk <ma...@cloudability.com>.
(in case you meant splits as salt size)

On Mon, Jan 18, 2016 at 2:19 PM, Matt Kowalczyk <ma...@cloudability.com>
wrote:

> For splits, I've used,
>
>
> https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/PTable.java#L267
>
> To get a reference to a PTable,
>
>
> https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java#L367
>
> Not sure if this is exposed through JDBC.
>
> On Mon, Jan 18, 2016 at 11:27 AM, Vladimir Rodionov <
> vladrodionov@gmail.com> wrote:
>
>> Number of regions, I presume? You can get this info using standard HBase
>> API.
>>
>> -Vlad
>>
>> On Mon, Jan 18, 2016 at 4:53 AM, Sumit Nigam <su...@yahoo.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Is there an easy way to know the number of splits a Phoenix table has?
>>> Preferably through JDBC metadata API?
>>>
>>> Thanks,
>>> Sumit
>>>
>>
>>
>

Re: Number of splits

Posted by Matt Kowalczyk <ma...@cloudability.com>.
For splits, I've used,

https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/PTable.java#L267

To get a reference to a PTable,

https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java#L367

Not sure if this is exposed through JDBC.

On Mon, Jan 18, 2016 at 11:27 AM, Vladimir Rodionov <vl...@gmail.com>
wrote:

> Number of regions, I presume? You can get this info using standard HBase
> API.
>
> -Vlad
>
> On Mon, Jan 18, 2016 at 4:53 AM, Sumit Nigam <su...@yahoo.com> wrote:
>
>> Hi,
>>
>> Is there an easy way to know the number of splits a Phoenix table has?
>> Preferably through JDBC metadata API?
>>
>> Thanks,
>> Sumit
>>
>
>

Re: Number of splits

Posted by Vladimir Rodionov <vl...@gmail.com>.
Number of regions, I presume? You can get this info using standard HBase
API.

-Vlad

On Mon, Jan 18, 2016 at 4:53 AM, Sumit Nigam <su...@yahoo.com> wrote:

> Hi,
>
> Is there an easy way to know the number of splits a Phoenix table has?
> Preferably through JDBC metadata API?
>
> Thanks,
> Sumit
>