@Override public boolean allowCacheAllocationOnHeap() { return defaults.allowCacheAllocationOnHeap(); } }
public static org.neo4j.unsafe.impl.batchimport.Configuration importConfiguration( Number processors, boolean defaultSettingsSuitableForTests, Config dbConfig, File storeDir, Boolean defaultHighIO ) { return importConfiguration( processors, defaultSettingsSuitableForTests, dbConfig, null, storeDir, DEFAULT.allowCacheAllocationOnHeap(), defaultHighIO ); }
public void initialize( Input input ) throws IOException { log.info( "Import starting" ); startTime = currentTimeMillis(); this.input = input; PageCacheArrayFactoryMonitor numberArrayFactoryMonitor = new PageCacheArrayFactoryMonitor(); numberArrayFactory = auto( neoStore.getPageCache(), storeDir, config.allowCacheAllocationOnHeap(), numberArrayFactoryMonitor ); badCollector = input.badCollector(); // Some temporary caches and indexes in the import idMapper = input.idMapper( numberArrayFactory ); nodeRelationshipCache = new NodeRelationshipCache( numberArrayFactory, config.denseNodeThreshold() ); Estimates inputEstimates = input.calculateEstimates( neoStore.getPropertyStore().newValueEncodedSizeCalculator() ); // Sanity checking against estimates new EstimationSanityChecker( recordFormats, monitor ).sanityCheck( inputEstimates ); new HeapSizeSanityChecker( monitor ).sanityCheck( inputEstimates, recordFormats, neoStore, nodeRelationshipCache.memoryEstimation( inputEstimates.numberOfNodes() ), idMapper.memoryEstimation( inputEstimates.numberOfNodes() ) ); dependencies.satisfyDependencies( inputEstimates, idMapper, neoStore, nodeRelationshipCache, numberArrayFactoryMonitor ); if ( neoStore.determineDoubleRelationshipRecordUnits( inputEstimates ) ) { monitor.doubleRelationshipRecordUnitsEnabled(); } executionMonitor.initialize( dependencies ); }
@Override public boolean allowCacheAllocationOnHeap() { return defaults.allowCacheAllocationOnHeap(); } }
public static org.neo4j.unsafe.impl.batchimport.Configuration importConfiguration( Number processors, boolean defaultSettingsSuitableForTests, Config dbConfig, File storeDir, Boolean defaultHighIO ) { return importConfiguration( processors, defaultSettingsSuitableForTests, dbConfig, null, storeDir, DEFAULT.allowCacheAllocationOnHeap(), defaultHighIO ); }
public void initialize( Input input ) throws IOException { log.info( "Import starting" ); startTime = currentTimeMillis(); this.input = input; PageCacheArrayFactoryMonitor numberArrayFactoryMonitor = new PageCacheArrayFactoryMonitor(); numberArrayFactory = auto( neoStore.getPageCache(), storeDir, config.allowCacheAllocationOnHeap(), numberArrayFactoryMonitor ); badCollector = input.badCollector(); // Some temporary caches and indexes in the import idMapper = input.idMapper( numberArrayFactory ); nodeRelationshipCache = new NodeRelationshipCache( numberArrayFactory, config.denseNodeThreshold() ); Estimates inputEstimates = input.calculateEstimates( neoStore.getPropertyStore().newValueEncodedSizeCalculator() ); // Sanity checking against estimates new EstimationSanityChecker( recordFormats, monitor ).sanityCheck( inputEstimates ); new HeapSizeSanityChecker( monitor ).sanityCheck( inputEstimates, recordFormats, neoStore, nodeRelationshipCache.memoryEstimation( inputEstimates.numberOfNodes() ), idMapper.memoryEstimation( inputEstimates.numberOfNodes() ) ); dependencies.satisfyDependencies( inputEstimates, idMapper, neoStore, nodeRelationshipCache, numberArrayFactoryMonitor ); if ( neoStore.determineDoubleRelationshipRecordUnits( inputEstimates ) ) { monitor.doubleRelationshipRecordUnitsEnabled(); } executionMonitor.initialize( dependencies ); }