org.archive.crawler.framework
Interface FrontierMarker

All Known Implementing Classes:
BdbMultipleWorkQueues.BdbFrontierMarker

public interface FrontierMarker

A marker is a pointer to a place somewhere inside a frontier's list of pending URIs. URIFrontiers use them to allow outside classes (UI for example) to hold (effectively) pointers into the abstract list of pending URIs inside the frontier. If the crawl is not paused (i.e. running) the marker will instantly become out of date.

Author:
Kristinn Sigurdsson

Method Summary
 java.lang.String getMatchExpression()
          Returns the regular expression that this marker uses.
 long getNextItemNumber()
          Returns the number of the next match after the marker.
 boolean hasNext()
          Returns false if no more URIs can be found matching the expression beyond those already covered.
 

Method Detail

getMatchExpression

java.lang.String getMatchExpression()
Returns the regular expression that this marker uses.

Returns:
the regular expression that this marker uses

getNextItemNumber

long getNextItemNumber()
Returns the number of the next match after the marker. Alternatively this can be viewed as n-1, where n is the number of items found before the marker.

Returns:
the number of the next match after the marker

hasNext

boolean hasNext()
Returns false if no more URIs can be found matching the expression beyond those already covered. True otherwise.

Returns:
Are there any more matches.


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