uk.ac.gla.dcs.renaissance.iqir
Class StringIndexedDensityTracker

java.lang.Object
  extended by bpiwowar.db.BatchFileStorage<String,bpiwowar.db.BatchFileStorage.StringLocation,DensityTracker>
      extended by uk.ac.gla.dcs.renaissance.iqir.StringIndexedDensityTracker
All Implemented Interfaces:
Iterable<Map.Entry<String,DensityTracker>>
Direct Known Subclasses:
BaseDensitiesBuilder

public class StringIndexedDensityTracker
extends bpiwowar.db.BatchFileStorage<String,bpiwowar.db.BatchFileStorage.StringLocation,DensityTracker>

Author:
Benjamin Piwowarski

Nested Class Summary
 
Nested classes/interfaces inherited from class bpiwowar.db.BatchFileStorage
bpiwowar.db.BatchFileStorage.IntegerLocation, bpiwowar.db.BatchFileStorage.Location<K>, bpiwowar.db.BatchFileStorage.StringLocation
 
Field Summary
 
Fields inherited from class bpiwowar.db.BatchFileStorage
locationStore
 
Constructor Summary
StringIndexedDensityTracker(com.sleepycat.je.Environment dbenv, String dbname, boolean destroy, int nbThreads)
           
 
Method Summary
protected  void add(String s, bpiwowar.maths.matrix.DoubleMatrix1D v)
           
 void flush(bpiwowar.log.TaskTimer timer)
          Update the subspaces
 void setCompaction(int compactInterval, double compactThreshold)
           
 void setMaxSVDRank(int maxRank)
           
 void setStoreVectorSum(boolean storeVectorSum)
           
 
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
 

Constructor Detail

StringIndexedDensityTracker

public StringIndexedDensityTracker(com.sleepycat.je.Environment dbenv,
                                   String dbname,
                                   boolean destroy,
                                   int nbThreads)
                            throws com.sleepycat.persist.evolve.IncompatibleClassException,
                                   com.sleepycat.je.DatabaseException
Throws:
com.sleepycat.persist.evolve.IncompatibleClassException
com.sleepycat.je.DatabaseException
Method Detail

setStoreVectorSum

public void setStoreVectorSum(boolean storeVectorSum)

add

protected void add(String s,
                   bpiwowar.maths.matrix.DoubleMatrix1D v)

flush

public void flush(bpiwowar.log.TaskTimer timer)
           throws IOException,
                  com.sleepycat.je.DatabaseException
Update the subspaces

Parameters:
timer -
Throws:
IOException - If there are troubles when writing
com.sleepycat.je.DatabaseException

setMaxSVDRank

public void setMaxSVDRank(int maxRank)

setCompaction

public void setCompaction(int compactInterval,
                          double compactThreshold)


Copyright © 2011. All Rights Reserved.