org.elasticsearch.index.cache.bloom.none
Class NoneBloomCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.bloom.none.NoneBloomCache
- All Implemented Interfaces:
- CloseableComponent, BloomCache, IndexComponent
public class NoneBloomCache
- extends AbstractIndexComponent
- implements BloomCache
Method Summary |
void |
clear()
|
void |
clear(org.apache.lucene.index.IndexReader reader)
|
void |
close()
|
BloomFilter |
filter(org.apache.lucene.index.IndexReader reader,
java.lang.String fieldName,
boolean asyncLoad)
*Async* loads a bloom filter for the field name. |
long |
sizeInBytes()
|
long |
sizeInBytes(java.lang.String fieldName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoneBloomCache
public NoneBloomCache(Index index)
NoneBloomCache
@Inject
public NoneBloomCache(Index index,
@IndexSettings
Settings indexSettings)
filter
public BloomFilter filter(org.apache.lucene.index.IndexReader reader,
java.lang.String fieldName,
boolean asyncLoad)
- Description copied from interface:
BloomCache
- *Async* loads a bloom filter for the field name. Note, this one only supports
for fields that have a single term per doc.
- Specified by:
filter
in interface BloomCache
clear
public void clear()
- Specified by:
clear
in interface BloomCache
clear
public void clear(org.apache.lucene.index.IndexReader reader)
- Specified by:
clear
in interface BloomCache
sizeInBytes
public long sizeInBytes()
- Specified by:
sizeInBytes
in interface BloomCache
sizeInBytes
public long sizeInBytes(java.lang.String fieldName)
- Specified by:
sizeInBytes
in interface BloomCache
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Throws:
ElasticSearchException