swishej
Class MetaHash

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--swishej.MetaHash

class MetaHash
extends java.util.Hashtable

Class to remember meta information from index file.

See Also:
Serialized Form

Fields inherited from class java.util.Hashtable
count, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
(package private) MetaHash()
           
 
Method Summary
(package private)  void addmeta(java.lang.String s, int num)
          Add an entry to the meta information table.
(package private)  int getmeta(java.lang.String s)
          Return number corresponding to meta word.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

MetaHash

MetaHash()
Method Detail

addmeta

void addmeta(java.lang.String s,
             int num)
Add an entry to the meta information table.
Parameters:
s - meta word as string
num - number for meta word.

getmeta

int getmeta(java.lang.String s)
Return number corresponding to meta word.
Parameters:
s - meta word as string
Returns:
number of corresponding meta word or 1 if word not found.


Contact: Christian.Werner@t-online.de