Search in sources :

Example 21 with IndexSample

use of org.neo4j.storageengine.api.schema.IndexSample in project neo4j by neo4j.

the class UniqueDatabaseIndexPopulatorTest method sampleEmptyIndex.

@Test
public void sampleEmptyIndex() throws Exception {
    populator = newPopulator();
    IndexSample sample = populator.sampleResult();
    assertEquals(new IndexSample(), sample);
}
Also used : IndexSample(org.neo4j.storageengine.api.schema.IndexSample) Test(org.junit.Test)

Aggregations

IndexSample (org.neo4j.storageengine.api.schema.IndexSample)21 Test (org.junit.Test)12 IndexEntryUpdate (org.neo4j.kernel.api.index.IndexEntryUpdate)4 IndexPopulator (org.neo4j.kernel.api.index.IndexPopulator)4 IndexSampler (org.neo4j.storageengine.api.schema.IndexSampler)4 Before (org.junit.Before)2 IndexSamplingConfig (org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig)2 IndexReader (org.neo4j.storageengine.api.schema.IndexReader)2 File (java.io.File)1 IOException (java.io.IOException)1 Terms (org.apache.lucene.index.Terms)1 RAMDirectory (org.apache.lucene.store.RAMDirectory)1 IndexNotFoundKernelException (org.neo4j.kernel.api.exceptions.index.IndexNotFoundKernelException)1 IndexReaderStub (org.neo4j.kernel.api.impl.index.IndexReaderStub)1 PartitionSearcher (org.neo4j.kernel.api.impl.index.partition.PartitionSearcher)1 WritableIndexPartition (org.neo4j.kernel.api.impl.index.partition.WritableIndexPartition)1 LuceneIndexAccessor (org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor)1 SchemaIndex (org.neo4j.kernel.api.impl.schema.SchemaIndex)1 IndexAccessor (org.neo4j.kernel.api.index.IndexAccessor)1 LabelSchemaDescriptor (org.neo4j.kernel.api.schema_new.LabelSchemaDescriptor)1