HBase
  1. HBase
  2. HBASE-7894

Update Filter javadoc about the use of read/write fields for multiple regions

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Following this[1] on the mailing list, it is not obvious how hbase will use a filter's read/write fields when there are multiple regions. Javadoc should be added explaining that for scans spanning multiple regions hbase will re-create the filter using the previous filter's writeFields instead of the original scan.

      [1] - http://mail-archives.apache.org/mod_mbox/hbase-user/201302.mbox/%3CCANZ-JHE-8FATa69ucHQmmZAUEkN1dKshiRKLJyb_bFf%3D6ZNm2A%40mail.gmail.com%3E

        Activity

        Hide
        Ted Yu added a comment -

        From FilterBase:

          /**
           * Filters that are purely stateless and do nothing in their reset() methods can inherit
           * this null/empty implementation.
           *
           * @inheritDoc
           */
          @Override
          public void reset() {
          }
        

        I think we can add javadoc for FilterBase stating that stateful Filter's should implement reset() themselves.

        Show
        Ted Yu added a comment - From FilterBase: /** * Filters that are purely stateless and do nothing in their reset() methods can inherit * this null /empty implementation. * * @inheritDoc */ @Override public void reset() { } I think we can add javadoc for FilterBase stating that stateful Filter's should implement reset() themselves.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bryan Baugher
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development