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


Java IndexNamingStrategy类代码示例

本文整理汇总了Java中com.threewks.gaetools.search.gae.naming.IndexNamingStrategy的典型用法代码示例。如果您正苦于以下问题:Java IndexNamingStrategy类的具体用法?Java IndexNamingStrategy怎么用?Java IndexNamingStrategy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IndexNamingStrategy类属于com.threewks.gaetools.search.gae.naming包,在下文中一共展示了IndexNamingStrategy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: BaseGaeSearchService

import com.threewks.gaetools.search.gae.naming.IndexNamingStrategy; //导入依赖的package包/类
protected BaseGaeSearchService(Class<T> type, SearchMetadata<T, K> metadata, SearchConfig searchConfig, IndexNamingStrategy indexNamingStrategy) {
    this.type = type;
    this.fieldMediators = searchConfig.getFieldMediators();
    this.transformerManager = searchConfig.getTransformerManager();
    this.indexTypeLookup = searchConfig.getIndexTypeLookup();
    this.indexNamingStrategy = indexNamingStrategy;
    this.indexName = indexNamingStrategy.getName(type);
    this.metadata = metadata;
}
 
开发者ID:monPlan,项目名称:springboot-spwa-gae-demo,代码行数:10,代码来源:BaseGaeSearchService.java

示例2: GaeSearchService

import com.threewks.gaetools.search.gae.naming.IndexNamingStrategy; //导入依赖的package包/类
/**
 * Create a {@link GaeSearchService} for the given type using the given {@link IndexNamingStrategy}.
 *
 * @param type
 * @param searchConfig
 * @param indexNamingStrategy
 */
public GaeSearchService(Class<T> type, SearchConfig searchConfig, IndexNamingStrategy indexNamingStrategy) {
    super(type, searchConfig, indexNamingStrategy);
    if (!metadata.hasIndexableFields()) {
        throw new SearchException("Unable to create %s - the type %s has no indexable fields ", this.getClass().getSimpleName(), type.getSimpleName());
    }
}
 
开发者ID:monPlan,项目名称:springboot-spwa-gae-demo,代码行数:14,代码来源:GaeSearchService.java

示例3: IdGaeSearchService

import com.threewks.gaetools.search.gae.naming.IndexNamingStrategy; //导入依赖的package包/类
/**
 * Create an {@link IdGaeSearchService} for the given type and the given id type using the given {@link IndexNamingStrategy}/
 *
 * @param type
 * @param keyType
 * @param searchConfig
 * @param indexNamingStrategy
 */
public IdGaeSearchService(Class<T> type, Class<K> keyType, SearchConfig searchConfig, IndexNamingStrategy indexNamingStrategy) {
    super(type, keyType, searchConfig, indexNamingStrategy);
}
 
开发者ID:monPlan,项目名称:springboot-spwa-gae-demo,代码行数:12,代码来源:IdGaeSearchService.java


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