Search in sources :

Example 1 with MinimalIndexAccessor

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);
}
Also used : MinimalIndexAccessor(org.neo4j.kernel.api.index.MinimalIndexAccessor)

Aggregations

MinimalIndexAccessor (org.neo4j.kernel.api.index.MinimalIndexAccessor)1