Exemplo n.º 1
0
            public StageAnonymousInnerClass(ReadGroupsFromCacheStepTest outerInstance, [email protected] config, IEnumerator <RelationshipGroupRecord> groups, AtomicInteger processCounter) : base(this.GetType().Name, null, config, 0)
            {
                this.outerInstance   = outerInstance;
                this._config         = config;
                this._groups         = groups;
                this._processCounter = processCounter;

                add(new ReadGroupsFromCacheStep(control(), config, groups, 1));
                add(new VerifierStep(control(), config, processCounter));
            }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SafeVarargs private final <T> void shouldOverride(System.Func<T,org.neo4j.unsafe.impl.batchimport.Configuration> configFactory, System.Func<org.neo4j.unsafe.impl.batchimport.Configuration,T> getter, T... values)
        private void ShouldOverride <T>(System.Func <T, Configuration> configFactory, System.Func <Configuration, T> getter, params T[] values)
        {
            foreach (T value in values)
            {
                // given
                Configuration configuration = configFactory(value);
                WrappedBatchImporterConfigurationForNeo4jAdmin vanilla = new WrappedBatchImporterConfigurationForNeo4jAdmin(DEFAULT);

                // when
                WrappedBatchImporterConfigurationForNeo4jAdmin wrapped = new WrappedBatchImporterConfigurationForNeo4jAdmin(configuration);

                // then
                assertEquals(getter(vanilla), getter(wrapped));
            }
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SafeVarargs private final <T> void shouldDelegate(System.Func<T,org.neo4j.unsafe.impl.batchimport.Configuration> configFactory, System.Func<org.neo4j.unsafe.impl.batchimport.Configuration,T> getter, T... expectedValues)
        private void ShouldDelegate <T>(System.Func <T, Configuration> configFactory, System.Func <Configuration, T> getter, params T[] expectedValues)
        {
            foreach (T expectedValue in expectedValues)
            {
                // given
                Configuration configuration = configFactory(expectedValue);

                // when
                WrappedBatchImporterConfigurationForNeo4jAdmin wrapped = new WrappedBatchImporterConfigurationForNeo4jAdmin(configuration);

                // then
                assertEquals(expectedValue, getter(wrapped));
            }

            // then
            assertEquals(getter(DEFAULT), getter(new WrappedBatchImporterConfigurationForNeo4jAdmin(DEFAULT)));
        }
Exemplo n.º 4
0
 public override int MaxNumberOfProcessors()
 {
     return(Configuration.allAvailableProcessors());
 }
Exemplo n.º 5
0
 public WrappedBatchImporterConfigurationForNeo4jAdmin(Configuration defaults) : base(defaults)
 {
 }
Exemplo n.º 6
0
 public abstract Configuration WithBatchSize([email protected] config, int batchSize);