You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2012/11/06 00:28:13 UTC

[jira] [Resolved] (HBASE-7099) create compaction hooks

     [ 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