use of org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer in project geode by apache.
the class LuceneRawIndex method createRepositoryManager.
@Override
protected RepositoryManager createRepositoryManager() {
HeterogeneousLuceneSerializer mapper = new HeterogeneousLuceneSerializer(getFieldNames());
RawLuceneRepositoryManager rawLuceneRepositoryManager = new RawLuceneRepositoryManager(this, mapper);
return rawLuceneRepositoryManager;
}
use of org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer in project geode by apache.
the class LuceneIndexForPartitionedRegion method createRepositoryManager.
protected RepositoryManager createRepositoryManager() {
HeterogeneousLuceneSerializer mapper = new HeterogeneousLuceneSerializer(getFieldNames());
PartitionedRepositoryManager partitionedRepositoryManager = new PartitionedRepositoryManager(this, mapper);
return partitionedRepositoryManager;
}
use of org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer in project geode by apache.
the class PartitionedRepositoryManagerJUnitTest method setUp.
@Before
public void setUp() {
cache = Fakes.cache();
userRegion = Mockito.mock(PartitionedRegion.class);
userDataStore = Mockito.mock(PartitionedRegionDataStore.class);
when(userRegion.getDataStore()).thenReturn(userDataStore);
when(cache.getRegion("/testRegion")).thenReturn(userRegion);
serializer = new HeterogeneousLuceneSerializer(new String[] { "a", "b" });
DLockService lockService = mock(DLockService.class);
when(lockService.lock(any(), anyLong(), anyLong())).thenReturn(true);
DLockService.addLockServiceForTests(PartitionedRegionHelper.PARTITION_LOCK_SERVICE_NAME, lockService);
createIndexAndRepoManager();
}
use of org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer in project geode by apache.
the class LuceneIndexRecoveryHAIntegrationTest method setup.
@Before
public void setup() {
indexedFields = new String[] { "txt" };
mapper = new HeterogeneousLuceneSerializer(indexedFields);
analyzer = new StandardAnalyzer();
LuceneServiceImpl.registerDataSerializables();
cache = new CacheFactory().set(MCAST_PORT, "0").create();
}
use of org.apache.geode.cache.lucene.internal.repository.serializer.HeterogeneousLuceneSerializer in project geode by apache.
the class RawLuceneRepositoryManagerJUnitTest method setUp.
@Before
public void setUp() {
cache = Fakes.cache();
userRegion = Mockito.mock(PartitionedRegion.class);
userDataStore = Mockito.mock(PartitionedRegionDataStore.class);
when(userRegion.getDataStore()).thenReturn(userDataStore);
when(cache.getRegion("/testRegion")).thenReturn(userRegion);
serializer = new HeterogeneousLuceneSerializer(new String[] { "a", "b" });
createIndexAndRepoManager();
}
Aggregations