Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.storageengine.api.schema.IndexSample sampleIndex() throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotFoundKernelException
        public override IndexSample SampleIndex()
        {
            UniqueIndexSampler sampler = new UniqueIndexSampler();

            sampler.Increment(_indexSearcher.IndexReader.numDocs());
            CheckCancellation();
            return(sampler.Result());
        }
Esempio n. 2
0
 public UniqueLuceneIndexPopulator(SchemaIndex index, IndexDescriptor descriptor) : base(index)
 {
     this._propertyKeyIds = descriptor.Schema().PropertyIds;
     this._sampler        = new UniqueIndexSampler();
 }