Andrew Purtell <apurtell@...> writes:

 
> CPs hook compaction by allowing one to wrap the scanner that is iterating over
the store files. So the
> wrapper gets a chance to examine the KeyValues being processed and also has an
opportunity to modify or
> drop them. 
>  
> Similarly for incoming HFiles for bulk load, the CP could be given a scanner
iterating over those files, if
> you had a RegionObserver installed. You would be given the option in effect to
rewrite the incoming HFiles
> before they are handed over to the RegionServer for addition to the region.
> 
> This is the right approach to interface design here, IMO, because the fact you
are given a scanner
> highlights the bulk nature of the input.
> 
> Is this something you could use?
> 
> Best regards,
> 
>   - Andy
> 
> Problems worthy of attack prove their worth by hitting back. - Piet Hein (via
Tom White)
> 


Yes, I think that might become handy, at least to let know the trigger code 
that new stuff is coming.

stan


Reply via email to