org.archive.wayback.resourceindex.filters
Class WindowEndFilter<T>

java.lang.Object
  extended by org.archive.wayback.resourceindex.filters.WindowEndFilter<T>
All Implemented Interfaces:
ObjectFilter<T>

public class WindowEndFilter<T>
extends Object
implements ObjectFilter<T>

SearchResultFitler that includes the first N records seen.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
 
Fields inherited from interface org.archive.wayback.util.ObjectFilter
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE
 
Constructor Summary
WindowEndFilter(int windowSize)
           
 
Method Summary
 int filterObject(T r)
          inpect record and determine if it should be included in the results or not, or if processing of new records should stop.
 int getNumReturned()
           
 int getNumSeen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowEndFilter

public WindowEndFilter(int windowSize)
Parameters:
windowSize - int number of records to include
Method Detail

getNumReturned

public int getNumReturned()

getNumSeen

public int getNumSeen()

filterObject

public int filterObject(T r)
Description copied from interface: ObjectFilter
inpect record and determine if it should be included in the results or not, or if processing of new records should stop.

Specified by:
filterObject in interface ObjectFilter<T>
Parameters:
r - Object which should be checked for inclusion/exclusion or abort
Returns:
int of FILTER_INCLUDE, FILTER_EXCLUDE, or FILTER_ABORT


Copyright © 2005-2011 Internet Archive. All Rights Reserved.