org.elasticsearch.index.store.memory
Class ByteBufferDirectoryService

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.store.memory.ByteBufferDirectoryService
All Implemented Interfaces:
IndexShardComponent, DirectoryService

public class ByteBufferDirectoryService
extends AbstractIndexShardComponent
implements DirectoryService


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
ByteBufferDirectoryService(ShardId shardId, Settings indexSettings, IndexStore indexStore, ByteBufferCache byteBufferCache)
           
 
Method Summary
 org.apache.lucene.store.Directory[] build()
           
 void fullDelete(org.apache.lucene.store.Directory dir)
           
 void renameFile(org.apache.lucene.store.Directory dir, String from, String to)
           
 long throttleTimeInNanos()
           
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferDirectoryService

@Inject
public ByteBufferDirectoryService(ShardId shardId,
                                         @IndexSettings
                                         Settings indexSettings,
                                         IndexStore indexStore,
                                         ByteBufferCache byteBufferCache)
Method Detail

throttleTimeInNanos

public long throttleTimeInNanos()
Specified by:
throttleTimeInNanos in interface DirectoryService

build

public org.apache.lucene.store.Directory[] build()
Specified by:
build in interface DirectoryService

renameFile

public void renameFile(org.apache.lucene.store.Directory dir,
                       String from,
                       String to)
                throws IOException
Specified by:
renameFile in interface DirectoryService
Throws:
IOException

fullDelete

public void fullDelete(org.apache.lucene.store.Directory dir)
Specified by:
fullDelete in interface DirectoryService


Copyright © 2009-2012. All Rights Reserved.