當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。