当前位置: 首页>>代码示例>>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;未经允许,请勿转载。