org.elasticsearch.index.cache.id.simple
Class SimpleIdCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIdCache
@Inject
public SimpleIdCache(Index index,
@IndexSettings
Settings indexSettings)
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.