當前位置: 首頁>>代碼示例>>Java>>正文


Java BitsetFilterCache類代碼示例

本文整理匯總了Java中org.elasticsearch.index.cache.bitset.BitsetFilterCache的典型用法代碼示例。如果您正苦於以下問題:Java BitsetFilterCache類的具體用法?Java BitsetFilterCache怎麽用?Java BitsetFilterCache使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BitsetFilterCache類屬於org.elasticsearch.index.cache.bitset包,在下文中一共展示了BitsetFilterCache類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: IndexQueryParserService

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Inject
public IndexQueryParserService(Index index, IndexSettingsService indexSettingsService,
                               IndicesQueriesRegistry indicesQueriesRegistry,
                               ScriptService scriptService, AnalysisService analysisService,
                               MapperService mapperService, IndexCache indexCache, IndexFieldDataService fieldDataService,
                               BitsetFilterCache bitsetFilterCache,
                               @Nullable SimilarityService similarityService) {
    super(index, indexSettingsService.getSettings());
    this.indexSettingsService = indexSettingsService;
    this.scriptService = scriptService;
    this.analysisService = analysisService;
    this.mapperService = mapperService;
    this.similarityService = similarityService;
    this.indexCache = indexCache;
    this.fieldDataService = fieldDataService;
    this.bitsetFilterCache = bitsetFilterCache;

    Settings indexSettings = indexSettingsService.getSettings();
    this.defaultField = indexSettings.get(DEFAULT_FIELD, AllFieldMapper.NAME);
    this.queryStringLenient = indexSettings.getAsBoolean(QUERY_STRING_LENIENT, false);
    this.parseFieldMatcher = new ParseFieldMatcher(indexSettings);
    this.defaultAllowUnmappedFields = indexSettings.getAsBoolean(ALLOW_UNMAPPED, true);
    this.indicesQueriesRegistry = indicesQueriesRegistry;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:25,代碼來源:IndexQueryParserService.java

示例2: QueryShardContext

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
public QueryShardContext(int shardId, IndexSettings indexSettings, BitsetFilterCache bitsetFilterCache,
        IndexFieldDataService indexFieldDataService, MapperService mapperService, SimilarityService similarityService,
        ScriptService scriptService, NamedXContentRegistry xContentRegistry,
        Client client, IndexReader reader, LongSupplier nowInMillis) {
    super(indexSettings, mapperService, scriptService, xContentRegistry, client, reader, nowInMillis);
    this.shardId = shardId;
    this.indexSettings = indexSettings;
    this.similarityService = similarityService;
    this.mapperService = mapperService;
    this.bitsetFilterCache = bitsetFilterCache;
    this.indexFieldDataService = indexFieldDataService;
    this.allowUnmappedFields = indexSettings.isDefaultAllowUnmappedFields();
    this.nestedScope = new NestedScope();

}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:16,代碼來源:QueryShardContext.java

示例3: IndexService

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Inject
public IndexService(Injector injector, Index index, NodeEnvironment nodeEnv,
                    AnalysisService analysisService, MapperService mapperService, IndexQueryParserService queryParserService,
                    SimilarityService similarityService, IndexAliasesService aliasesService, IndexCache indexCache,
                    IndexSettingsService settingsService,
                    IndexFieldDataService indexFieldData, BitsetFilterCache bitSetFilterCache, IndicesService indicesServices) {

    super(index, settingsService.getSettings());
    this.injector = injector;
    this.analysisService = analysisService;
    this.mapperService = mapperService;
    this.queryParserService = queryParserService;
    this.similarityService = similarityService;
    this.aliasesService = aliasesService;
    this.indexCache = indexCache;
    this.indexFieldData = indexFieldData;
    this.settingsService = settingsService;
    this.bitsetFilterCache = bitSetFilterCache;

    this.pluginsService = injector.getInstance(PluginsService.class);
    this.indicesServices = indicesServices;
    this.indicesLifecycle = (InternalIndicesLifecycle) injector.getInstance(IndicesLifecycle.class);

    // inject workarounds for cyclic dep
    indexFieldData.setListener(new FieldDataCacheListener(this));
    bitSetFilterCache.setListener(new BitsetCacheListener(this));
    this.nodeEnv = nodeEnv;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:29,代碼來源:IndexService.java

示例4: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Override
public BitsetFilterCache bitsetFilterCache() {
    return fixedBitSetFilterCache;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:TestSearchContext.java

示例5: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Override
public BitsetFilterCache bitsetFilterCache() {
    return in.bitsetFilterCache();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:FilteredSearchContext.java

示例6: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Override
public BitsetFilterCache bitsetFilterCache() {
    return indexService.cache().bitsetFilterCache();
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:DefaultSearchContext.java

示例7: IndexService

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
public IndexService(IndexSettings indexSettings, NodeEnvironment nodeEnv,
                    NamedXContentRegistry xContentRegistry,
                    SimilarityService similarityService,
                    ShardStoreDeleter shardStoreDeleter,
                    AnalysisRegistry registry,
                    @Nullable EngineFactory engineFactory,
                    CircuitBreakerService circuitBreakerService,
                    BigArrays bigArrays,
                    ThreadPool threadPool,
                    ScriptService scriptService,
                    ClusterService clusterService,
                    Client client,
                    QueryCache queryCache,
                    IndexStore indexStore,
                    IndexEventListener eventListener,
                    IndexModule.IndexSearcherWrapperFactory wrapperFactory,
                    MapperRegistry mapperRegistry,
                    IndicesFieldDataCache indicesFieldDataCache,
                    Consumer<ShardId> globalCheckpointSyncer,
                    List<SearchOperationListener> searchOperationListeners,
                    List<IndexingOperationListener> indexingOperationListeners) throws IOException {
    super(indexSettings);
    this.indexSettings = indexSettings;
    this.globalCheckpointSyncer = globalCheckpointSyncer;
    this.xContentRegistry = xContentRegistry;
    this.similarityService = similarityService;
    this.mapperService = new MapperService(indexSettings, registry.build(indexSettings), xContentRegistry, similarityService,
        mapperRegistry,
        // we parse all percolator queries as they would be parsed on shard 0
        () -> newQueryShardContext(0, null, () -> {
            throw new IllegalArgumentException("Percolator queries are not allowed to use the current timestamp");
        }));
    this.indexFieldData = new IndexFieldDataService(indexSettings, indicesFieldDataCache, circuitBreakerService, mapperService);
    this.shardStoreDeleter = shardStoreDeleter;
    this.bigArrays = bigArrays;
    this.threadPool = threadPool;
    this.scriptService = scriptService;
    this.clusterService = clusterService;
    this.client = client;
    this.eventListener = eventListener;
    this.nodeEnv = nodeEnv;
    this.indexStore = indexStore;
    indexFieldData.setListener(new FieldDataCacheListener(this));
    this.bitsetFilterCache = new BitsetFilterCache(indexSettings, new BitsetCacheListener(this));
    this.warmer = new IndexWarmer(indexSettings.getSettings(), threadPool,
        bitsetFilterCache.createListener(threadPool));
    this.indexCache = new IndexCache(indexSettings, queryCache, bitsetFilterCache);
    this.engineFactory = engineFactory;
    // initialize this last -- otherwise if the wrapper requires any other member to be non-null we fail with an NPE
    this.searcherWrapper = wrapperFactory.newWrapper(this);
    this.globalCheckpointTask = new AsyncGlobalCheckpointTask(this);
    this.indexingOperationListeners = Collections.unmodifiableList(indexingOperationListeners);
    this.searchOperationListeners = Collections.unmodifiableList(searchOperationListeners);
    // kick off async ops for the first shard in this index
    this.refreshTask = new AsyncRefreshTask(this);
    rescheduleFsyncTask(indexSettings.getTranslogDurability());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:58,代碼來源:IndexService.java

示例8: IndexCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
public IndexCache(IndexSettings indexSettings, QueryCache queryCache, BitsetFilterCache bitsetFilterCache) {
    super(indexSettings);
    this.queryCache = queryCache;
    this.bitsetFilterCache = bitsetFilterCache;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:6,代碼來源:IndexCache.java

示例9: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
/**
 * Return the {@link BitsetFilterCache} for this index.
 */
public BitsetFilterCache bitsetFilterCache() {
    return bitsetFilterCache;
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:7,代碼來源:IndexCache.java

示例10: createNested

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
protected Nested createNested(IndexSearcher searcher, Query parentFilter, Query childFilter) throws IOException {
    BitsetFilterCache s = indexService.cache().bitsetFilterCache();
    return new Nested(s.getBitSetProducer(parentFilter), childFilter);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:AbstractFieldDataTestCase.java

示例11: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Override
public BitsetFilterCache bitsetFilterCache() {
    return indexService.bitsetFilterCache();
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:5,代碼來源:PercolateContext.java

示例12: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
public BitsetFilterCache bitsetFilterCache() {
    return bitsetFilterCache;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:4,代碼來源:IndexService.java

示例13: IndexCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Inject
public IndexCache(Index index, IndexSettingsService indexSettingsService, QueryCache queryCache, BitsetFilterCache bitsetFilterCache) {
    super(index, indexSettingsService.getSettings());
    this.queryCache = queryCache;
    this.bitsetFilterCache = bitsetFilterCache;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:7,代碼來源:IndexCache.java

示例14: configure

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
@Override
protected void configure() {
    queryCaches.bindType(binder(), indexSettings, QUERY_CACHE_TYPE, INDEX_QUERY_CACHE);
    bind(BitsetFilterCache.class).asEagerSingleton();
    bind(IndexCache.class).asEagerSingleton();
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:7,代碼來源:IndexCacheModule.java

示例15: bitsetFilterCache

import org.elasticsearch.index.cache.bitset.BitsetFilterCache; //導入依賴的package包/類
public abstract BitsetFilterCache bitsetFilterCache(); 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:2,代碼來源:SearchContext.java


注:本文中的org.elasticsearch.index.cache.bitset.BitsetFilterCache類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。