当前位置: 首页>>代码示例>>Java>>正文


Java MappedFieldType.Names方法代码示例

本文整理汇总了Java中org.elasticsearch.index.mapper.MappedFieldType.Names方法的典型用法代码示例。如果您正苦于以下问题:Java MappedFieldType.Names方法的具体用法?Java MappedFieldType.Names怎么用?Java MappedFieldType.Names使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.index.mapper.MappedFieldType的用法示例。


在下文中一共展示了MappedFieldType.Names方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ParentChildIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
public ParentChildIndexFieldData(Index index, Settings indexSettings, MappedFieldType.Names fieldNames,
                                 FieldDataType fieldDataType, IndexFieldDataCache cache, MapperService mapperService,
                                 CircuitBreakerService breakerService) {
    super(index, indexSettings, fieldNames, fieldDataType, cache);
    this.breakerService = breakerService;
    if (Version.indexCreated(indexSettings).before(Version.V_2_0_0_beta1)) {
        parentTypes = new TreeSet<>();
        for (DocumentMapper documentMapper : mapperService.docMappers(false)) {
            beforeCreate(documentMapper);
        }
        mapperService.addTypeListener(this);
    } else {
        ImmutableSortedSet.Builder<String> builder = ImmutableSortedSet.naturalOrder();
        for (DocumentMapper mapper : mapperService.docMappers(false)) {
            ParentFieldMapper parentFieldMapper = mapper.parentFieldMapper();
            if (parentFieldMapper.active()) {
                builder.add(parentFieldMapper.type());
            }
        }
        parentTypes = builder.build();
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:23,代码来源:ParentChildIndexFieldData.java

示例2: IndexFieldCache

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
IndexFieldCache(ESLogger logger,final Cache<Key, Accountable> cache, Index index, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, Listener... listeners) {
    this.logger = logger;
    this.listeners = listeners;
    this.index = index;
    this.fieldNames = fieldNames;
    this.fieldDataType = fieldDataType;
    this.cache = cache;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:IndicesFieldDataCache.java

示例3: onRemoval

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public void onRemoval(ShardId shardId, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, boolean wasEvicted, long sizeInBytes) {
    if (shardId != null) {
        final IndexShard shard = indexService.shard(shardId.id());
        if (shard != null) {
            shard.fieldData().onRemoval(shardId, fieldNames, fieldDataType, wasEvicted, sizeInBytes);
        }
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:IndexService.java

示例4: InternalGlobalOrdinalsIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
InternalGlobalOrdinalsIndexFieldData(Index index, Settings settings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, AtomicOrdinalsFieldData[] segmentAfd, OrdinalMap ordinalMap, long memorySizeInBytes) {
    super(index, settings, fieldNames, fieldDataType, memorySizeInBytes);
    this.atomicReaders = new Atomic[segmentAfd.length];
    for (int i = 0; i < segmentAfd.length; i++) {
        atomicReaders[i] = new Atomic(segmentAfd[i], ordinalMap, i);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:InternalGlobalOrdinalsIndexFieldData.java

示例5: PackedArrayIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
public PackedArrayIndexFieldData(Index index, Settings indexSettings, MappedFieldType.Names fieldNames,
                                 FieldDataType fieldDataType, IndexFieldDataCache cache, NumericType numericType,
                                 CircuitBreakerService breakerService) {
    super(index, indexSettings, fieldNames, fieldDataType, cache);
    Preconditions.checkNotNull(numericType);
    Preconditions.checkArgument(EnumSet.of(NumericType.BOOLEAN, NumericType.BYTE, NumericType.SHORT, NumericType.INT, NumericType.LONG).contains(numericType), getClass().getSimpleName() + " only supports integer types, not " + numericType);
    this.numericType = numericType;
    this.breakerService = breakerService;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:PackedArrayIndexFieldData.java

示例6: onCache

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public void onCache(ShardId shardId, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, Accountable ramUsage) {
    if (shardId != null) {
        final IndexShard shard = indexService.shard(shardId.id());
        if (shard != null) {
            shard.fieldData().onCache(shardId, fieldNames, fieldDataType, ramUsage);
        }
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:IndexService.java

示例7: onCache

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public void onCache(ShardId shardId, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, Accountable fieldData) {
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:4,代码来源:IndicesFieldDataCacheListener.java

示例8: onRemoval

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public void onRemoval(ShardId shardId, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, boolean wasEvicted, long sizeInBytes) {
    assert sizeInBytes >= 0 : "When reducing circuit breaker, it should be adjusted with a number higher or equal to 0 and not [" + sizeInBytes + "]";
    circuitBreakerService.getBreaker(CircuitBreaker.FIELDDATA).addWithoutBreaking(-sizeInBytes);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:IndicesFieldDataCacheListener.java

示例9: buildIndexFieldDataCache

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
public IndexFieldDataCache buildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, MappedFieldType.Names fieldNames, FieldDataType fieldDataType) {
    return new IndexFieldCache(logger, cache, index, fieldNames, fieldDataType, indicesFieldDataCacheListener, listener);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:4,代码来源:IndicesFieldDataCache.java

示例10: GlobalOrdinalsIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
protected GlobalOrdinalsIndexFieldData(Index index, Settings settings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, long memorySizeInBytes) {
    super(index, settings);
    this.fieldNames = fieldNames;
    this.fieldDataType = fieldDataType;
    this.memorySizeInBytes = memorySizeInBytes;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:GlobalOrdinalsIndexFieldData.java

示例11: getFieldNames

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public MappedFieldType.Names getFieldNames() {
    return fieldNames;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:GlobalOrdinalsIndexFieldData.java

示例12: AbstractIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
public AbstractIndexFieldData(Index index, Settings indexSettings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, IndexFieldDataCache cache) {
    super(index, indexSettings);
    this.fieldNames = fieldNames;
    this.fieldDataType = fieldDataType;
    this.cache = cache;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:7,代码来源:AbstractIndexFieldData.java

示例13: getFieldNames

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
@Override
public MappedFieldType.Names getFieldNames() {
    return this.fieldNames;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:AbstractIndexFieldData.java

示例14: PagedBytesIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
public PagedBytesIndexFieldData(Index index, Settings indexSettings, MappedFieldType.Names fieldNames,
                                FieldDataType fieldDataType, IndexFieldDataCache cache, CircuitBreakerService breakerService) {
    super(index, indexSettings, fieldNames, fieldDataType, cache, breakerService);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:PagedBytesIndexFieldData.java

示例15: IndexIndexFieldData

import org.elasticsearch.index.mapper.MappedFieldType; //导入方法依赖的package包/类
private IndexIndexFieldData(Index index, MappedFieldType.Names names) {
    super(index, Settings.EMPTY, names, new FieldDataType("string"), null, null);
    atomicFieldData = new IndexAtomicFieldData(index().name());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:5,代码来源:IndexIndexFieldData.java


注:本文中的org.elasticsearch.index.mapper.MappedFieldType.Names方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。