org.elasticsearch.index.cache.bloom.simple
Class SimpleBloomCache

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.cache.bloom.simple.SimpleBloomCache
All Implemented Interfaces:
org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, BloomCache, IndexComponent

public class SimpleBloomCache
extends AbstractIndexComponent
implements BloomCache, org.apache.lucene.index.SegmentReader.CoreClosedListener


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
SimpleBloomCache(Index index, Settings indexSettings, ThreadPool threadPool)
           
 
Method Summary
 void clear()
           
 void clear(org.apache.lucene.index.IndexReader reader)
           
 void close()
           
 BloomFilter filter(org.apache.lucene.index.IndexReader reader, String fieldName, boolean asyncLoad)
          *Async* loads a bloom filter for the field name.
 void onClose(org.apache.lucene.index.SegmentReader owner)
           
 long sizeInBytes()
           
 long sizeInBytes(String fieldName)
           
 
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

SimpleBloomCache

@Inject
public SimpleBloomCache(Index index,
                               @IndexSettings
                               Settings indexSettings,
                               ThreadPool threadPool)
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 BloomCache

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 BloomCache

sizeInBytes

public long sizeInBytes()
Specified by:
sizeInBytes in interface BloomCache

sizeInBytes

public long sizeInBytes(String fieldName)
Specified by:
sizeInBytes in interface BloomCache

filter

public BloomFilter filter(org.apache.lucene.index.IndexReader reader,
                          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


Copyright © 2009-2012. All Rights Reserved.