|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,DensityTracker> uk.ac.gla.dcs.renaissance.iqir.IndexedSubspaceBuilder uk.ac.gla.dcs.renaissance.iqir.KeywordsSubspaceBuilder
public class KeywordsSubspaceBuilder
Utility class to get a representation for keywords
Nested Class Summary | |
---|---|
static class |
KeywordsSubspaceBuilder.Sampler
|
Nested classes/interfaces inherited from class bpiwowar.db.BatchFileStorage |
---|
bpiwowar.db.BatchFileStorage.IntegerLocation, bpiwowar.db.BatchFileStorage.Location<K>, bpiwowar.db.BatchFileStorage.StringLocation |
Field Summary | |
---|---|
static int |
PERC_AVAILABLE_MEMORY_CHECK
When available memory goes below this threshold, we try a compaction. |
static int |
PERC_AVAILABLE_MEMORY_DUMP
If after compaction there is less memory (in percentage) than this value, we will flush the current batch. |
Fields inherited from class bpiwowar.db.BatchFileStorage |
---|
locationStore |
Constructor Summary | |
---|---|
KeywordsSubspaceBuilder(com.sleepycat.je.Environment dbenv,
String dbname,
boolean destroy,
int nbThreads)
|
Method Summary | |
---|---|
void |
addInformationNeed(bpiwowar.log.TaskTimer timer,
bpiwowar.maths.matrix.DoubleMatrix1D v)
Add an Information Need vector |
void |
addRestriction(int id,
KeywordsSubspaceBuilder.Sampler restriction)
|
void |
setRandom(Random random)
Set the random function |
Methods inherited from class uk.ac.gla.dcs.renaissance.iqir.IndexedSubspaceBuilder |
---|
add, flush, setCompaction, setMaxSVDRank, setStoreVectorSum |
Methods inherited from class bpiwowar.db.BatchFileStorage |
---|
cleanup, close, closeOpenedBatches, count, finalize, getCurrentBatchIndex, getHome, getLocation, getObjectSize, getStoredObject, getStoredObject, hasObject, isCompressed, iterator, keyIterator, keys, nextBatch, outputObject, readObject, storeObject, storeObject, storeObject, storeObject, toString, writeObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PERC_AVAILABLE_MEMORY_CHECK
public static final int PERC_AVAILABLE_MEMORY_DUMP
Constructor Detail |
---|
public KeywordsSubspaceBuilder(com.sleepycat.je.Environment dbenv, String dbname, boolean destroy, int nbThreads) throws com.sleepycat.persist.evolve.IncompatibleClassException, com.sleepycat.je.DatabaseException
dbenv
- The database environmentdb
- dbname
- nbTerms
- Number of termsdestroy
- Destroy the old databasenbThreads
-
com.sleepycat.je.DatabaseException
com.sleepycat.persist.evolve.IncompatibleClassException
Method Detail |
---|
public void addRestriction(int id, KeywordsSubspaceBuilder.Sampler restriction)
public void addInformationNeed(bpiwowar.log.TaskTimer timer, bpiwowar.maths.matrix.DoubleMatrix1D v) throws IOException, com.sleepycat.je.DatabaseException
v
- The vector to add
com.sleepycat.je.DatabaseException
IOException
public void setRandom(Random random)
random
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |