DLESE Tools
v1.2

org.dlese.dpc.index
Class LuceneStopWords

java.lang.Object
  extended byorg.dlese.dpc.index.LuceneStopWords

public final class LuceneStopWords
extends Object

This class simply loads a hashmap of Lucene stop words from the array given by StopAnalyzer. This way a single map lookup can be used instead of iterating over the array every time.

Author:
ryandear

Constructor Summary
LuceneStopWords()
          Constructor for the LuceneStopWords object
 
Method Summary
static boolean isStopWord(String word)
          Indicates whether the given word is a Lucene stop word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneStopWords

public LuceneStopWords()
Constructor for the LuceneStopWords object

Method Detail

isStopWord

public static boolean isStopWord(String word)
Indicates whether the given word is a Lucene stop word

Parameters:
word -
Returns:
The luceneStopWord value

DLESE Tools
v1.2