org.elasticsearch.index.cache.id.simple
Class SimpleIdCache

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.cache.id.simple.SimpleIdCache
All Implemented Interfaces:
Iterable<IdReaderCache>, org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, IdCache, IndexComponent

public class SimpleIdCache
extends AbstractIndexComponent
implements IdCache, org.apache.lucene.index.SegmentReader.CoreClosedListener


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
SimpleIdCache(Index index, Settings indexSettings)
           
 
Method Summary
 void clear()
           
 void clear(org.apache.lucene.index.IndexReader reader)
           
 void close()
           
 Iterator<IdReaderCache> iterator()
           
 void onClose(org.apache.lucene.index.SegmentReader owner)
           
 IdReaderCache reader(org.apache.lucene.index.IndexReader reader)
           
 void refresh(org.apache.lucene.index.IndexReader[] readers)
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Constructor Detail

SimpleIdCache

@Inject
public SimpleIdCache(Index index,
                            @IndexSettings
                            Settings indexSettings)
Method Detail

close

public void close()
           throws ElasticSearchException
Specified by:
close in interface CloseableComponent
Throws:
ElasticSearchException

clear

public void clear()
Specified by:
clear in interface IdCache

onClose

public void onClose(org.apache.lucene.index.SegmentReader owner)
Specified by:
onClose in interface org.apache.lucene.index.SegmentReader.CoreClosedListener

clear

public void clear(org.apache.lucene.index.IndexReader reader)
Specified by:
clear in interface IdCache

reader

public IdReaderCache reader(org.apache.lucene.index.IndexReader reader)
Specified by:
reader in interface IdCache

iterator

public Iterator<IdReaderCache> iterator()
Specified by:
iterator in interface Iterable<IdReaderCache>

refresh

public void refresh(org.apache.lucene.index.IndexReader[] readers)
             throws Exception
Specified by:
refresh in interface IdCache
Throws:
Exception


Copyright © 2009-2012. All Rights Reserved.