org.alliance.core.file.filedatabase.searchindex
Class KeywordIndex
java.lang.Object
org.alliance.core.file.filedatabase.searchindex.KeywordIndex
public class KeywordIndex
- extends java.lang.Object
Created by IntelliJ IDEA.
User: maciek
Date: 2006-jan-06
Time: 20:36:10
To change this template use File | Settings | File Templates.
|
Method Summary |
void |
add(int index,
FileDescriptor fd)
|
void |
load(java.io.ObjectInputStream in)
|
void |
remove(int index)
|
void |
save(java.io.ObjectOutputStream out)
|
int[] |
search(java.lang.String query,
int maxSearchHits,
FileType ft)
Searches through all files in this index |
static java.util.StringTokenizer |
splitIntoKeywords(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeywordIndex
public KeywordIndex()
add
public void add(int index,
FileDescriptor fd)
search
public int[] search(java.lang.String query,
int maxSearchHits,
FileType ft)
- Searches through all files in this index
- Parameters:
query -
- Returns:
- array of indecies into FileDescriptorAllocationTable
save
public void save(java.io.ObjectOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
splitIntoKeywords
public static java.util.StringTokenizer splitIntoKeywords(java.lang.String s)
remove
public void remove(int index)