Class ConfigurableStopWordsService
- java.lang.Object
-
- io.streamthoughts.examples.azkarra.dependency.ConfigurableStopWordsService
-
- All Implemented Interfaces:
Configurable
,StopWordsService
@Component @Singleton public class ConfigurableStopWordsService extends Object implements StopWordsService, Configurable
-
-
Constructor Summary
Constructors Constructor Description ConfigurableStopWordsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Conf conf)
Configures this instance with the specifiedConf
.boolean
test(String word)
Checks whether a word is a stop word.
-
-
-
Method Detail
-
configure
public void configure(Conf conf)
Description copied from interface:Configurable
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Parameters:
conf
- theConf
instance used to configure this instance.
-
test
public boolean test(String word)
Description copied from interface:StopWordsService
Checks whether a word is a stop word.- Specified by:
test
in interfaceStopWordsService
- Parameters:
word
- the word to filter.- Returns:
true
if the word is a stop word,false
otherwise.
-
-