use of org.neo4j.kernel.api.index.MinimalIndexAccessor in project neo4j by neo4j.
the class IndexProxyCreator method createFailedIndexProxy.
IndexProxy createFailedIndexProxy(IndexDescriptor descriptor, IndexPopulationFailure populationFailure) {
// Note about the buffer factory instantiation here. Question is why an index populator is instantiated for a failed index proxy to begin with.
// The byte buffer factory should not be used here anyway so the buffer size doesn't actually matter.
MinimalIndexAccessor minimalIndexAccessor = minimalIndexAccessorFromProvider(descriptor);
IndexProxyStrategy indexProxyStrategy = createIndexProxyStrategy(descriptor);
IndexProxy proxy;
proxy = new FailedIndexProxy(indexProxyStrategy, minimalIndexAccessor, populationFailure, logProvider);
return new ContractCheckingIndexProxy(proxy);
}
Aggregations