Ejemplo n.º 1
0
        private IndexPopulator PopulatorFromProvider(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory)
        {
            IndexProvider indexProvider = _providerMap.lookup(descriptor.ProviderDescriptor());

            return(indexProvider.GetPopulator(descriptor, samplingConfig, bufferFactory));
        }
Ejemplo n.º 2
0
 public override IndexPopulator GetPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory)
 {
     PopulatorCallCount.incrementAndGet();
     return(_mockedPopulator);
 }
Ejemplo n.º 3
0
        public override IndexPopulator GetPopulator(StoreIndexDescriptor descriptor, IndexSamplingConfig samplingConfig, ByteBufferFactory bufferFactory)
        {
            SchemaIndex luceneIndex = LuceneSchemaIndexBuilder.Create(descriptor, _config).withFileSystem(_fileSystem).withOperationalMode(_operationalMode).withSamplingConfig(samplingConfig).withIndexStorage(GetIndexStorage(descriptor.Id)).withWriterConfig(IndexWriterConfigs.population).build();

            if (luceneIndex.ReadOnly)
            {
                throw new System.NotSupportedException("Can't create populator for read only index");
            }
            if (descriptor.Type() == UNIQUE)
            {
                return(new UniqueLuceneIndexPopulator(luceneIndex, descriptor));
            }
            else
            {
                return(new NonUniqueLuceneIndexPopulator(luceneIndex, samplingConfig));
            }
        }
Ejemplo n.º 4
0
 public BlockBasedIndexPopulatorAnonymousInnerClass(BlockBasedIndexPopulatorTest outerInstance, Org.Neo4j.Io.pagecache.PageCache pageCache, FileSystemAbstraction fs, File indexFile, Org.Neo4j.Kernel.Impl.Index.Schema.GenericLayout layout, UnknownType empty, StoreIndexDescriptor indexDescriptor, IndexSpecificSpaceFillingCurveSettingsCache spatialSettings, IndexDirectoryStructure directoryStructure, Org.Neo4j.Kernel.Impl.Index.Schema.IndexDropAction dropAction, Org.Neo4j.Kernel.Impl.Index.Schema.ByteBufferFactory bufferFactory, Org.Neo4j.Kernel.Impl.Index.Schema.BlockStorage.Monitor monitor) : base(pageCache, fs, indexFile, layout, empty, indexDescriptor, spatialSettings, directoryStructure, dropAction, false, bufferFactory, 2, monitor)
 {
     this.outerInstance = outerInstance;
 }