hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chao Shi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8401) Backport "HBASE-8284 Allow String Offset(s) in ColumnPaginationFilter for bookmark based pagination"
Date Tue, 15 Oct 2013 06:46:13 GMT

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

Chao Shi commented on HBASE-8401:
---------------------------------

Hi folks,

We found this feature is helpful to our use case. So I'd like to help on this ticket.

The current serialization code of ColumnPaginationFilter is as follow:
{code}
  public void readFields(DataInput in) throws IOException
  {
    this.limit = in.readInt();
    this.offset = in.readInt();
  }

  public void write(DataOutput out) throws IOException
  {
    out.writeInt(this.limit);
    out.writeInt(this.offset);
  }
{code}

If we can accept that old server does not work with a new client, we can use this trick: serialize
a negative integer number first, which could be an indicator of using a new serialization
format.

> Backport "HBASE-8284 Allow String Offset(s) in ColumnPaginationFilter for bookmark based
pagination"
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-8401
>                 URL: https://issues.apache.org/jira/browse/HBASE-8401
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: Varun Sharma
>
> This issue is for discussion of whether or not backport HBASE-8284.  It has been applied
to trunk and 0.95.  A patch for 0.94 is over on hbase-8284



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message