org.apache.hadoop.hbase.master.cleaner
Class HFileLinkCleaner

java.lang.Object
  extended by org.apache.hadoop.hbase.BaseConfigurable
      extended by org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
          extended by org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
              extended by org.apache.hadoop.hbase.master.cleaner.HFileLinkCleaner
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, FileCleanerDelegate, Stoppable

@InterfaceAudience.LimitedPrivate(value="Configuration")
public class HFileLinkCleaner
extends BaseHFileCleanerDelegate

HFileLink cleaner that determines if a hfile should be deleted. HFiles can be deleted only if there're no links to them. When a HFileLink is created a back reference file is created in: /hbase/archive/table/region/cf/.links-hfile/ref-region.ref-table To check if the hfile can be deleted the back references folder must be empty.


Constructor Summary
HFileLinkCleaner()
           
 
Method Summary
 boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
          Should the master delete the file or keep it?
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
isStopped, stop
 
Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
getDeletableFiles
 
Methods inherited from class org.apache.hadoop.hbase.BaseConfigurable
getConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf
 

Constructor Detail

HFileLinkCleaner

public HFileLinkCleaner()
Method Detail

isFileDeletable

public boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Description copied from class: BaseFileCleanerDelegate
Should the master delete the file or keep it?

Specified by:
isFileDeletable in class BaseFileCleanerDelegate
Parameters:
fStat - file status of the file to check
Returns:
true if the file is deletable, false if not

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class BaseConfigurable


Copyright © 2015 The Apache Software Foundation. All rights reserved.