|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.wayback.resourceindex.filters.UrlPrefixMatchFilter
public class UrlPrefixMatchFilter
SearchResultFilter which includes any URL which begins with a given prefix, and aborts processing when any URL does not match the prefix. This abort short-circuiting assumes that records will be seen in increasing URL order: once a URL does not match, no further URLs will match either.
| Field Summary |
|---|
| Fields inherited from interface org.archive.wayback.util.ObjectFilter |
|---|
FILTER_ABORT, FILTER_EXCLUDE, FILTER_INCLUDE |
| Constructor Summary | |
|---|---|
UrlPrefixMatchFilter(java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
int |
filterObject(CaptureSearchResult r)
inpect record and determine if it should be included in the results or not, or if processing of new records should stop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrlPrefixMatchFilter(java.lang.String prefix)
prefix - String which records must begin with| Method Detail |
|---|
public int filterObject(CaptureSearchResult r)
ObjectFilter
filterObject in interface ObjectFilter<CaptureSearchResult>r - Object which should be checked for inclusion/exclusion or abort
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||