public class ParallelTextService extends AbstractParallelTextService
Modifier and Type | Field and Description |
---|---|
String |
dateColumnName |
String[] |
languageColumnNames |
String |
tableName |
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS
Constructor and Description |
---|
ParallelTextService() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ParallelText> |
doSearch(Language headLang,
Language targetLang,
String headword,
MatchingMethod matchingMethod)
Runs a search.
|
void |
setConnectionParameters(ConnectionParameters conParams) |
void |
setDateColumnName(String dateColumnName) |
void |
setLanguageColumnNames(String languageColumnNames) |
protected void |
setLanguages(String[] languages) |
void |
setMatchingMethods(String matchingMethods) |
void |
setTableName(String tableName) |
getSupportedMatchingMethods, getValidLanguagePair, getValidMatchingMethod, search, setSupportedMatchingMethods
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException
getComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceName
@Parameter public String tableName
@Parameter public String[] languageColumnNames
@Parameter(defaultValue="date") public String dateColumnName
public void setConnectionParameters(ConnectionParameters conParams)
public void setTableName(String tableName)
public void setLanguageColumnNames(String languageColumnNames)
public void setMatchingMethods(String matchingMethods)
public void setDateColumnName(String dateColumnName)
protected void setLanguages(String[] languages)
protected Collection<ParallelText> doSearch(Language headLang, Language targetLang, String headword, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
AbstractParallelTextService
doSearch
in class AbstractParallelTextService
headLang
- Source languagetargetLang
- Target languageheadword
- Keywords to be searchedmatchingMethod
- Matching methodInvalidParameterException
- An invalid parameter was passedProcessFailedException
- Process failed