[ 
https://issues.apache.org/jira/browse/PHOENIX-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255322#comment-16255322
 ] 

Rajeshbabu Chintaguntla commented on PHOENIX-4318:
--------------------------------------------------

[~Apache9]
bq. Is there any design doc for the local index of phoenix? 
You can get more info here 
https://www.slideshare.net/rajeshbabuchintaguntla/local-secondary-indexes-in-apache-phoenix
bq.  We've also built local secondary index in our system, with common prefix 
it is very easy to make the local index always in the same region with the 
actual data.
Yes true.
bq. So I'm curious that why local index can not be split properly?
Since the local index data in the same tables region wise we don't have any 
problem with splits/merges as these were taken care by HBase automatically. 
Since the local indexes data is sorted by column value so we need to get the 
data row key from each key value and see for which child region the data row 
belongs. That way for each reference we need to go through complete HFile to 
identify the child regions data.

> Fix IndexHalfStoreFileReader and related classes
> ------------------------------------------------
>
>                 Key: PHOENIX-4318
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4318
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Ankit Singhal
>            Assignee: Rajeshbabu Chintaguntla
>              Labels: HBase-2.0
>             Fix For: 4.14.0
>
>         Attachments: PHOENIX-4318_v2.patch, PHOENIX-4318_v3.patch, 
> PHOENIX-4318_wip.patch, PHOENIX-4318_wip3.patch
>
>
> These classes use the internals of HBase.(And most of them are not accessible 
> in HBase 2.0)
> phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/LocalIndexStoreFileScanner.java
> phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReader.java
> phoenix-core/src/main/java/org/apache/hadoop/hbase/regionserver/IndexHalfStoreFileReaderGenerator.java
> phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DelegateRegionScanner.java
> phoenix-core/src/main/java/org/apache/phoenix/util/IndexUtil.java
> phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DelegateRegionObserver.java



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to