Search in sources :

Example 1 with BucketTargetingMap

use of org.apache.geode.cache.lucene.internal.partition.BucketTargetingMap in project geode by apache.

the class PartitionedRepositoryManagerJUnitTest method checkRepository.

protected void checkRepository(IndexRepositoryImpl repo0, int bucketId) {
    IndexWriter writer0 = repo0.getWriter();
    RegionDirectory dir0 = (RegionDirectory) writer0.getDirectory();
    assertEquals(new BucketTargetingMap(fileAndChunkBuckets.get(bucketId), bucketId), dir0.getFileSystem().getFileAndChunkRegion());
    assertEquals(serializer, repo0.getSerializer());
}
Also used : IndexWriter(org.apache.lucene.index.IndexWriter) BucketTargetingMap(org.apache.geode.cache.lucene.internal.partition.BucketTargetingMap) RegionDirectory(org.apache.geode.cache.lucene.internal.directory.RegionDirectory)

Aggregations

RegionDirectory (org.apache.geode.cache.lucene.internal.directory.RegionDirectory)1 BucketTargetingMap (org.apache.geode.cache.lucene.internal.partition.BucketTargetingMap)1 IndexWriter (org.apache.lucene.index.IndexWriter)1