org.basex.util.ft
Class StemDir

java.lang.Object
  extended by org.basex.util.hash.ASet
      extended by org.basex.util.hash.TokenSet
          extended by org.basex.util.hash.TokenMap
              extended by org.basex.util.ft.StemDir
All Implemented Interfaces:
java.lang.Iterable<byte[]>

public final class StemDir
extends TokenMap

Simple stemming directory for full-text requests.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.util.hash.TokenSet
keys
 
Fields inherited from class org.basex.util.hash.ASet
bucket, next, size
 
Constructor Summary
StemDir()
           
 
Method Summary
 boolean read(IO fl)
          Reads a stop words file.
 byte[] stem(byte[] word)
          Returns a stemmed word or the word itself.
 
Methods inherited from class org.basex.util.hash.TokenMap
delete, get, put, put, rehash, toString, values
 
Methods inherited from class org.basex.util.hash.TokenSet
add, add, clear, contains, hash, id, iterator, key, put, read, write
 
Methods inherited from class org.basex.util.hash.ASet
checkSize, isEmpty, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StemDir

public StemDir()
Method Detail

read

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

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

stem

public byte[] stem(byte[] word)
Returns a stemmed word or the word itself.

Parameters:
word - word to be stemmed
Returns:
resulting token