hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-7099) create compaction hooks
Date Mon, 05 Nov 2012 23:28:13 GMT

     [ https://issues.apache.org/jira/browse/HBASE-7099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell resolved HBASE-7099.
-----------------------------------

    Resolution: Invalid

The existing preCompact hook allows skipping KVs and modifying the values of KVs.

Do this:

{code}
public preCompact(final ObserverContext<RegionCoprocessorEnvironment> c,
  final Store store, 
  final InternalScanner scanner)
{
  return new MyCustomInternalScanner(scanner);
}
{code}

Your custom InternalScanner therefore gets to inspect, drop, or change KVs from the wrapped
scanner. It is your custom scanner that will be used during compaction.
                
> create compaction hooks 
> ------------------------
>
>                 Key: HBASE-7099
>                 URL: https://issues.apache.org/jira/browse/HBASE-7099
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Adela Maznikar
>            Assignee: Adela Maznikar
>
> Create compaction hooks which should be used to modify the value of the KV during compaction.
The possible modifications would include: skipping the KV, modifying the value of the KV in
the desired format, leaving the value as it was.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message