org.basex.query.ft
Class StopWords

java.lang.Object
  extended by org.basex.util.TokenSet
      extended by org.basex.query.ft.StopWords

public final class StopWords
extends TokenSet

Simple stop words set for full-text requests.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Constructor Summary
StopWords()
          Default Constructor.
StopWords(Data data, String file)
          Constructor, reading stopword list from disk.
 
Method Summary
 void comp(QueryContext ctx)
          Compiles the full-text options.
 boolean read(IO fl, boolean e)
          Reads a stop words file.
 
Methods inherited from class org.basex.util.TokenSet
add, delete, id, key, keys, read, size, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWords

public StopWords()
Default Constructor.


StopWords

public StopWords(Data data,
                 String file)
          throws IOException
Constructor, reading stopword list from disk. And creating database stopword file.

Parameters:
data - data reference
file - stopword list file
Throws:
IOException - I/O exception
Method Detail

comp

public void comp(QueryContext ctx)
Compiles the full-text options.

Parameters:
ctx - query context

read

public boolean read(IO fl,
                    boolean e)
Reads a stop words file.

Parameters:
fl - file reference
e - except flag
Returns:
true if everything went alright