|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.dcs.renaissance.iqir.config.IndexConfiguration
public final class IndexConfiguration
Field Summary | |
---|---|
String |
basename
|
File |
directory
|
String |
field
|
it.unimi.dsi.mg4j.index.Index |
index
|
Constructor Summary | |
---|---|
IndexConfiguration()
|
|
IndexConfiguration(File directory,
String basename,
String field)
|
Method Summary | |
---|---|
it.unimi.dsi.fastutil.ints.IntList |
getFrequencies()
Get document frequencies (i.e., number of documents in which a term appears) |
double |
getSize(int docId)
Return the size of a document |
CharSequence |
getTerm(int i)
Get term |
long[] |
getTermFrequency()
Get term frequencies (i.e. |
int |
getTermId(CharSequence word)
Get a term id for a given word |
it.unimi.dsi.fastutil.objects.ObjectList<? extends CharSequence> |
getTerms()
|
long |
getTotalLength()
Return the total length of the documents |
it.unimi.dsi.mg4j.index.Index |
init()
Initialise the index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public File directory
public String basename
public String field
public transient it.unimi.dsi.mg4j.index.Index index
Constructor Detail |
---|
public IndexConfiguration()
public IndexConfiguration(File directory, String basename, String field) throws Exception
directory
- index directorybasename
- index basenamefield
- index field (e.g., "text")
Exception
Method Detail |
---|
public it.unimi.dsi.mg4j.index.Index init() throws Exception
Exception
public long getTotalLength()
public double getSize(int docId)
public int getTermId(CharSequence word)
word
-
public it.unimi.dsi.fastutil.objects.ObjectList<? extends CharSequence> getTerms()
public CharSequence getTerm(int i)
i
-
public it.unimi.dsi.fastutil.ints.IntList getFrequencies() throws IOException
IOException
public long[] getTermFrequency() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |