public NodeImporter(BatchingNeoStores stores, IdMapper idMapper, Monitor monitor) : base(stores, monitor) { this._labelTokenRepository = stores.LabelRepository; this._idMapper = idMapper; this._nodeStore = stores.NodeStore; this._nodeRecord = _nodeStore.newRecord(); this._nodeIds = new BatchingIdGetter(_nodeStore); this._idPropertyStore = stores.TemporaryPropertyStore; this._idPropertyRecord = _idPropertyStore.newRecord(); _nodeRecord.InUse = true; }
protected internal RelationshipImporter(BatchingNeoStores stores, IdMapper idMapper, DataStatistics typeDistribution, Monitor monitor, Collector badCollector, bool validateRelationshipData, bool doubleRecordUnits) : base(stores, monitor) { this._doubleRecordUnits = doubleRecordUnits; this._relationshipTypeTokenRepository = stores.RelationshipTypeRepository; this._idMapper = idMapper; this._badCollector = badCollector; this._validateRelationshipData = validateRelationshipData; this._relationshipStore = stores.RelationshipStore; this._relationshipRecord = _relationshipStore.newRecord(); this._relationshipIds = new BatchingIdGetter(_relationshipStore); this._typeCounts = typeDistribution.NewClient(); this._prepareIdSequence = PrepareIdSequence.of(doubleRecordUnits).apply(stores.RelationshipStore); _relationshipRecord.InUse = true; }
protected internal EntityImporter(BatchingNeoStores stores, Monitor monitor) { this._propertyStore = stores.PropertyStore; this._propertyKeyTokenRepository = stores.PropertyKeyRepository; this.Monitor = monitor; for (int i = 0; i < _propertyBlocks.Length; i++) { _propertyBlocks[i] = new PropertyBlock(); } this._propertyRecord = _propertyStore.newRecord(); this._propertyIds = new BatchingIdGetter(_propertyStore); this._dynamicStringRecordAllocator = new StandardDynamicRecordAllocator(new BatchingIdGetter(_propertyStore.StringStore, _propertyStore.StringStore.RecordsPerPage), _propertyStore.StringStore.RecordDataSize); this._dynamicArrayRecordAllocator = new StandardDynamicRecordAllocator(new BatchingIdGetter(_propertyStore.ArrayStore, _propertyStore.ArrayStore.RecordsPerPage), _propertyStore.StringStore.RecordDataSize); }