|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.config.PageCountsRetrieverConfig
public class PageCountsRetrieverConfig
This class represents a configuration for a PageCountsRetrieval It is used to pass a configuration to the PageCountsRetriever-instance.
Constructor Summary | |
---|---|
PageCountsRetrieverConfig(String searchEngineURL,
int numberOfRetries,
int intervalBetweenRetries,
String additionalKeywords,
boolean additionalKeywordsAfterSearchString,
boolean queryForAllPairs,
boolean isQuoteSearchTerms)
Creates a new instance of an PageCountsRetriever-Configuration. |
Method Summary | |
---|---|
String |
getAdditionalKeywords()
Returns the additional keywords to be added to the search string. |
boolean |
getAdditionalKeywordsAfterSearchString()
Returns whether additional keywords are to be placed after the search string or before. |
int |
getFirstRequestedPageNumber()
Returns the number of the first requested page (usually 0) |
int |
getIntervalBetweenRetries()
Returns the interval between two retries in case of failure (in seconds). |
int |
getNumberOfRequestedPages()
Returns the number of requested web pages per web crawl. |
int |
getNumberOfRetries()
Returns the number of retries in case of failure to raise a search query. |
boolean |
getQueryForAllPairs()
Returns whether queries should be raised for all pairs of the strings in the meta-data vector or the selected meta-data vector is processed sequentially as a list that is queried. |
String |
getSearchEngineURL()
Returns the URL of the search engine to be used. |
boolean |
isQuoteSearchTerms()
Returns whether the search terms should be automatically quoted (i.e., phrase search to be used). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageCountsRetrieverConfig(String searchEngineURL, int numberOfRetries, int intervalBetweenRetries, String additionalKeywords, boolean additionalKeywordsAfterSearchString, boolean queryForAllPairs, boolean isQuoteSearchTerms)
searchEngineURL
- a String containing the URL of the search enginenumberOfRetries
- the number of retries in case of failureintervalBetweenRetries
- the interval between two retries (in seconds)additionalKeywords
- additional keywords in the queryadditionalKeywordsAfterSearchString
- whether the additional keywords are to be placed after (or before) the search stringisQuoteSearchTerms
- should the search terms automatically be quoted (phrase search)Method Detail |
---|
public String getSearchEngineURL()
public int getNumberOfRetries()
getNumberOfRetries
in interface AnySearchConfig
public int getIntervalBetweenRetries()
getIntervalBetweenRetries
in interface AnySearchConfig
public int getFirstRequestedPageNumber()
getFirstRequestedPageNumber
in interface AnySearchConfig
public int getNumberOfRequestedPages()
getNumberOfRequestedPages
in interface AnySearchConfig
public String getAdditionalKeywords()
public boolean getAdditionalKeywordsAfterSearchString()
true
if additional keywords should be placed after the search string,
false
if they are placed before the search stringpublic boolean getQueryForAllPairs()
true
if all pairwise combinations of the elements in the
selected meta-data vector should be queried, false
if each item in the
meta-data vector is queried independently of the otherspublic boolean isQuoteSearchTerms()
true
if all search terms are automatically quoted
false
if search will be conducted using the search terms as they are
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |