use of org.neo4j.kernel.impl.index.schema.TokenIndexProvider in project neo4j by neo4j.
the class DefaultIndexProviderMap method initDefaultProviders.
private void initDefaultProviders() {
String providerName = config.get(GraphDatabaseSettings.default_schema_provider);
IndexProvider configuredDefaultProvider = indexProvidersByName.get(providerName);
requireNonNull(configuredDefaultProvider, () -> format("Configured default provider: `%s` not found. Available index providers: %s.", providerName, indexProvidersByName.keySet()));
defaultIndexProvider = configuredDefaultProvider;
String fulltextProviderName = config.get(GraphDatabaseInternalSettings.default_fulltext_provider);
fulltextIndexProvider = indexProvidersByName.get(fulltextProviderName);
if (fulltextIndexProvider == null) {
// Not all environments have the full-text index provider available.
fulltextIndexProvider = IndexProvider.EMPTY;
}
var configuredTokenIndexProvider = indexProvidersByName.get(TOKEN_INDEX_PROVIDER_NAME);
requireNonNull(configuredTokenIndexProvider, () -> format("Token index provider: `%s` not found. Available index providers: %s.", TOKEN_INDEX_PROVIDER_NAME, indexProvidersByName.keySet().toString()));
tokenIndexProvider = configuredTokenIndexProvider;
}
Aggregations