com.sun.labs.minion.indexer.partition
Class PartitionManager.ExtFilter

java.lang.Object
  extended by com.sun.labs.minion.indexer.partition.PartitionManager.ExtFilter
All Implemented Interfaces:
SimpleFilter
Enclosing class:
PartitionManager

protected class PartitionManager.ExtFilter
extends java.lang.Object
implements SimpleFilter

A class that implements SimpleFilter so that we can find partition files with various extensions.


Field Summary
protected  java.lang.String ext
          The extension that we're looking for.
protected  int partNum
          The partition number for the last file parsed.
 
Constructor Summary
PartitionManager.ExtFilter(java.lang.String ext)
           
 
Method Summary
 boolean accept(java.lang.String s)
          Tests whether this file has our extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partNum

protected int partNum
The partition number for the last file parsed.


ext

protected java.lang.String ext
The extension that we're looking for.

Constructor Detail

PartitionManager.ExtFilter

public PartitionManager.ExtFilter(java.lang.String ext)
Method Detail

accept

public boolean accept(java.lang.String s)
Tests whether this file has our extension.

Specified by:
accept in interface SimpleFilter
Parameters:
s - the name of the file.
Returns:
true if this file name matches our extension, false otherwise.