|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.uni_leipzig.asv.coocc.BinFileStrCol
Reads the stored files for wordstrings.
| Field Summary | |
protected RandomAccessFile |
dataFileReader
|
protected String |
fileName
|
protected byte[] |
indexFile
|
| Constructor Summary | |
BinFileStrCol(String fileName)
|
|
| Method Summary | |
static boolean |
existsFileDump(String fileName)
Tests, whether the required files for this class, given with the fileName exist and are not of null-length (like after a failed start of FilePreparer |
int |
getMaxWordNr()
Look up in file2 what's at position n-1 and n and returns the wort_bin from n-1 to n from file1 as Object[2] with Object[0]=String and Object[1]=Integer |
Integer |
getNumber(String word)
Lineare Suche zum auffinden von Wortnummern |
String |
getWord(Integer wordNr)
Look up in file2 what's at position n-1 and n and returns the wort_bin from n-1 to n from file1 as Object[2] with Object[0]=String and Object[1]=Integer |
List |
getWordsForNumbersSameOrder(List numbers)
|
static void |
main(String[] args)
|
void |
testFiles(String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] indexFile
protected RandomAccessFile dataFileReader
protected String fileName
| Constructor Detail |
public BinFileStrCol(String fileName)
| Method Detail |
public int getMaxWordNr()
public Integer getNumber(String word)
word -
public String getWord(Integer wordNr)
wordNr -
public List getWordsForNumbersSameOrder(List numbers)
public static boolean existsFileDump(String fileName)
fileName - relative or absolute filename without index or data extensions
public void testFiles(String fileName)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||