com.bigdata.resources
Class ResourceFileFilter

java.lang.Object
  extended by com.bigdata.resources.ResourceFileFilter
All Implemented Interfaces:
FileFilter

public class ResourceFileFilter
extends Object
implements FileFilter

The default implementation accepts directories under the configured IResourceManager.getDataDir() and files with either Options.JNL or Options.SEG file extensions.

*

If you define additional files that are stored within the StoreManager.getDataDir() then you SHOULD subclass ResourceFileFilter to recognize those files and override StoreManager.newFileFilter() method to return your ResourceFileFilter subclass.

Version:
$Id: ResourceFileFilter.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
ResourceFileFilter(StoreManager resourceManager)
           
 
Method Summary
 boolean accept(File f)
           
protected  boolean accept2(File f)
          Override this method to extend the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

ResourceFileFilter

public ResourceFileFilter(StoreManager resourceManager)
Parameters:
resourceManager -
Method Detail

accept2

protected boolean accept2(File f)
Override this method to extend the filter.

Parameters:
f - A file passed to accept(File)
Returns:
true iff the file should be accepted by the filter.

accept

public final boolean accept(File f)
Specified by:
accept in interface FileFilter


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.