org.compass.needle.terracotta
Class CSMTerracottaDirectory

java.lang.Object
  extended by org.apache.lucene.store.Directory
      extended by org.compass.needle.terracotta.TerracottaDirectory
          extended by org.compass.needle.terracotta.CSMTerracottaDirectory

public class CSMTerracottaDirectory
extends TerracottaDirectory

An extension to TerracottaDirectory that works in much the same way, except that it uses Terracotta ConcurrentStringMap instead of ConcurrentHashMap to store the index at.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.needle.terracotta.TerracottaDirectory
DEFAULT_BUFFER_SIZE, DEFAULT_CHM_CONCURRENCY_LEVEL, DEFAULT_CHM_INITIAL_CAPACITY, DEFAULT_CHM_LOAD_FACTOR, DEFAULT_FLUSH_RATE, EMPTY_FILE
 
Fields inherited from class org.apache.lucene.store.Directory
lockFactory
 
Constructor Summary
CSMTerracottaDirectory()
           
CSMTerracottaDirectory(int bufferSize, int flushRate)
           
 
Method Summary
protected  Map<String,TerracottaFile> createMap(int chmInitialCapacity, float chmLoadFactor, int chmConcurrencyLevel)
           
 
Methods inherited from class org.compass.needle.terracotta.TerracottaDirectory
addFile, close, createOutput, deleteFile, fileExists, fileLength, fileModified, getBufferSize, getFlushRate, getLockFactory, list, openInput, renameFile, setLockFactory, touchFile
 
Methods inherited from class org.apache.lucene.store.Directory
clearLock, copy, ensureOpen, getLockID, makeLock, openInput, sync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSMTerracottaDirectory

public CSMTerracottaDirectory()

CSMTerracottaDirectory

public CSMTerracottaDirectory(int bufferSize,
                              int flushRate)
Method Detail

createMap

protected Map<String,TerracottaFile> createMap(int chmInitialCapacity,
                                               float chmLoadFactor,
                                               int chmConcurrencyLevel)
Overrides:
createMap in class TerracottaDirectory


Copyright (c) 2004-2009 The Compass Project.