本文整理汇总了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);
}