Search in sources :

Example 6 with IdTypeConfiguration

use of org.neo4j.kernel.impl.store.id.configuration.IdTypeConfiguration in project neo4j by neo4j.

the class ReplicatedIdGeneratorFactory method open.

@Override
public IdGenerator open(File fileName, int grabSize, IdType idType, long highId, long maxId) {
    IdTypeConfiguration idTypeConfiguration = idTypeConfigurationProvider.getIdTypeConfiguration(idType);
    boolean aggressiveReuse = idTypeConfiguration.allowAggressiveReuse();
    return openGenerator(fileName, grabSize, idType, highId, maxId, aggressiveReuse);
}
Also used : IdTypeConfiguration(org.neo4j.kernel.impl.store.id.configuration.IdTypeConfiguration)

Aggregations

IdTypeConfiguration (org.neo4j.kernel.impl.store.id.configuration.IdTypeConfiguration)6 Test (org.junit.Test)3 IdTypeConfigurationProvider (org.neo4j.kernel.impl.store.id.configuration.IdTypeConfigurationProvider)3 File (java.io.File)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1 Function (java.util.function.Function)1 Collectors.toSet (java.util.stream.Collectors.toSet)1 Stream (java.util.stream.Stream)1 Nonnull (javax.annotation.Nonnull)1 Matchers.hasItems (org.hamcrest.Matchers.hasItems)1 Matchers.not (org.hamcrest.Matchers.not)1 Assert.assertEquals (org.junit.Assert.assertEquals)1 Assert.assertFalse (org.junit.Assert.assertFalse)1 Assert.assertThat (org.junit.Assert.assertThat)1 Assert.assertTrue (org.junit.Assert.assertTrue)1