com.senseidb.search.node
Class SenseiHourglassFactory<T>

java.lang.Object
  extended by com.senseidb.search.node.SenseiZoieFactory<T>
      extended by com.senseidb.search.node.SenseiHourglassFactory<T>

public class SenseiHourglassFactory<T>
extends SenseiZoieFactory<T>


Field Summary
 
Fields inherited from class com.senseidb.search.node.SenseiZoieFactory
_dirMode, _idxDir, _indexReaderDecorator, _interpreter, _zoieConfig
 
Constructor Summary
SenseiHourglassFactory(File idxDir, proj.zoie.api.DirectoryManager.DIRECTORY_MODE dirMode, proj.zoie.api.indexing.ZoieIndexableInterpreter<T> interpreter, SenseiIndexReaderDecorator indexReaderDecorator, proj.zoie.impl.indexing.ZoieConfig zoieConfig, String schedule, int trimThreshold, proj.zoie.hourglass.impl.HourGlassScheduler.FREQUENCY frequency)
           
 
Method Summary
 File getPath(int nodeId, int partitionId)
           
 proj.zoie.hourglass.impl.Hourglass<com.browseengine.bobo.api.BoboIndexReader,T> getZoieInstance(int nodeId, int partitionId)
           
 
Methods inherited from class com.senseidb.search.node.SenseiZoieFactory
getDecorator, getInterpreter, getPath, getVersionComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenseiHourglassFactory

public SenseiHourglassFactory(File idxDir,
                              proj.zoie.api.DirectoryManager.DIRECTORY_MODE dirMode,
                              proj.zoie.api.indexing.ZoieIndexableInterpreter<T> interpreter,
                              SenseiIndexReaderDecorator indexReaderDecorator,
                              proj.zoie.impl.indexing.ZoieConfig zoieConfig,
                              String schedule,
                              int trimThreshold,
                              proj.zoie.hourglass.impl.HourGlassScheduler.FREQUENCY frequency)
Parameters:
idxDir - the root directory for Hourglass
interpreter -
indexReaderDecorator -
zoieConfig -
schedule - format: "ss mm hh" meaning at hh:mm:ss time of the day that we roll forward for DAILY rolling; if it is hourly rolling, it means at mm:ss time of the hour that we roll forward; if it is MINUTELY, it means at ss seond of the minute that we roll forward.
trimThreshold - the number of units of rolling periods to keep (for DAILY rolling, we keep trimThreshold number of days of data)
frequency - rolling frequency
Method Detail

getZoieInstance

public proj.zoie.hourglass.impl.Hourglass<com.browseengine.bobo.api.BoboIndexReader,T> getZoieInstance(int nodeId,
                                                                                                       int partitionId)
Specified by:
getZoieInstance in class SenseiZoieFactory<T>

getPath

public File getPath(int nodeId,
                    int partitionId)
Specified by:
getPath in class SenseiZoieFactory<T>


Copyright © 2010-2012. All Rights Reserved.