本文整理汇总了Java中com.threewks.gaetools.search.gae.mediator.FieldMediatorSet类的典型用法代码示例。如果您正苦于以下问题:Java FieldMediatorSet类的具体用法?Java FieldMediatorSet怎么用?Java FieldMediatorSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FieldMediatorSet类属于com.threewks.gaetools.search.gae.mediator包,在下文中一共展示了FieldMediatorSet类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@Before
public void before() {
TransformerManager transformerManager = ObjectifyModule.defaultTransformerManager();
IndexTypeLookup indexTypeLookup = SearchModule.defaultIndexTypeLookup();
SearchConfig searchConfig = new SearchConfig(transformerManager, new FieldMediatorSet(), indexTypeLookup);
repository = new KeyRepository<>(KeyTestEntity.class, searchConfig);
noSearchrepository = new KeyRepository<>(KeyTestEntity.class, null);
}
示例2: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@Before
public void before() {
TransformerManager transformerManager = ObjectifyModule.defaultTransformerManager();
IndexTypeLookup indexTypeLookup = SearchModule.defaultIndexTypeLookup();
SearchConfig searchConfig = new SearchConfig(transformerManager, new FieldMediatorSet(), indexTypeLookup);
repository = new StringRepository<>(StringTestEntity.class, searchConfig);
noSearchrepository = new StringRepository<>(StringTestEntity.class, null);
}
示例3: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@Before
public void before() {
TransformerManager transformerManager = ObjectifyModule.defaultTransformerManager();
IndexTypeLookup indexTypeLookup = SearchModule.defaultIndexTypeLookup();
SearchConfig searchConfig = new SearchConfig(transformerManager, new FieldMediatorSet(), indexTypeLookup);
repository = new DatastoreKeyRepository<>(DatastoreKeyTestEntity.class, searchConfig);
noSearchrepository = new DatastoreKeyRepository<>(DatastoreKeyTestEntity.class, null);
}
示例4: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Before
public void before() {
LongRepository<LongTestEntity> repository = mock(LongRepository.class);
GaeSearchService<LongTestEntity, Key<LongTestEntity>> searchService = new GaeSearchService<>(LongTestEntity.class, new SearchConfig(TransformerManager.createWithDefaults(), new FieldMediatorSet(),
new IndexTypeLookup()));
com.threewks.gaetools.search.gae.SearchImpl<LongTestEntity, Key<LongTestEntity>> searchDelegate = searchService.search();
searchImpl = new SearchImpl<>(repository, searchDelegate);
search = searchImpl;
}
示例5: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@Before
public void before() {
TransformerManager transformerManager = ObjectifyModule.defaultTransformerManager();
IndexTypeLookup indexTypeLookup = SearchModule.defaultIndexTypeLookup();
SearchConfig searchConfig = new SearchConfig(transformerManager, new FieldMediatorSet(), indexTypeLookup);
repository = new LongRepository<>(LongTestEntity.class, searchConfig);
noSearchrepository = new LongRepository<>(LongTestEntity.class, null);
}
示例6: SearchConfig
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
public SearchConfig(TransformerManager transformerManager, FieldMediatorSet fieldMediators, IndexTypeLookup indexTypeLookup) {
this.transformerManager = transformerManager;
this.fieldMediators = fieldMediators;
this.indexTypeLookup = indexTypeLookup;
}
示例7: getFieldMediators
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
public FieldMediatorSet getFieldMediators() {
return fieldMediators;
}
示例8: defaultFieldMediatorSet
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
public static FieldMediatorSet defaultFieldMediatorSet() {
return new FieldMediatorSet();
}
示例9: before
import com.threewks.gaetools.search.gae.mediator.FieldMediatorSet; //导入依赖的package包/类
@Before
public void before() {
TransformerManager transformerManager = ObjectifyModule.defaultTransformerManager();
IndexTypeLookup indexTypeLookup = SearchModule.defaultIndexTypeLookup();
searchConfig = new SearchConfig(transformerManager, new FieldMediatorSet(), indexTypeLookup);
}