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

java.lang.Object
  extended by bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,DensityTracker>
      extended by uk.ac.gla.dcs.renaissance.iqir.IndexedSubspaceBuilder
All Implemented Interfaces:
Iterable<Map.Entry<Integer,DensityTracker>>
Direct Known Subclasses:
KeywordsSubspaceBuilder

public class IndexedSubspaceBuilder
extends bpiwowar.db.BatchFileStorage<Integer,bpiwowar.db.BatchFileStorage.IntegerLocation,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
IndexedSubspaceBuilder(com.sleepycat.je.Environment dbenv, String dbname, boolean destroy, int nbThreads)
           
 
Method Summary
protected  void add(int i, 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

IndexedSubspaceBuilder

public IndexedSubspaceBuilder(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(int i,
                   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.