本文整理匯總了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;
}
示例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());
}
}
示例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);
}