use of org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig in project neo4j by neo4j.
the class SimpleIndexPopulatorCompatibility method shouldBeAbleToDropAClosedIndexPopulator.
@Test
public void shouldBeAbleToDropAClosedIndexPopulator() throws Exception {
// GIVEN
IndexSamplingConfig indexSamplingConfig = new IndexSamplingConfig(Config.empty());
IndexPopulator populator = indexProvider.getPopulator(17, descriptor, indexSamplingConfig);
populator.close(false);
// WHEN
populator.drop();
// THEN - no exception should be thrown (it's been known to!)
}
use of org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig in project neo4j by neo4j.
the class IndexPopulationJobTest method inMemoryPopulator.
private IndexPopulator inMemoryPopulator(boolean constraint) throws TransactionFailureException {
IndexSamplingConfig samplingConfig = new IndexSamplingConfig(Config.empty());
NewIndexDescriptor descriptor = indexDescriptor(FIRST, name, constraint);
return new InMemoryIndexProvider().getPopulator(21, descriptor, samplingConfig);
}
Aggregations