public virtual int NewId(SlotChangeFactory slotChangeFactory) { int id = AcquireId(); _slotChanges.ProduceSlotChange(id, slotChangeFactory).NotifySlotCreated(null); return(id); }
public PersistentIntegerArray(SlotChangeFactory slotChangeFactory , ITransactionalIdSystem idSystem, int[] arr) : base(idSystem) { _slotChangeFactory = slotChangeFactory; _ints = new int[arr.Length]; System.Array.Copy(arr, 0, _ints, 0, arr.Length); }
public BTreeConfiguration(ITransactionalIdSystem idSystem, SlotChangeFactory slotChangeFactory , int cacheSize, bool canEnlistWithTransaction) { _idSystem = idSystem; _slotChangeFactory = slotChangeFactory; _canEnlistWithTransaction = canEnlistWithTransaction; _cacheSize = cacheSize; }
public virtual SlotChange ProduceSlotChange(int id, SlotChangeFactory slotChangeFactory ) { if (DTrace.enabled) { DTrace.ProduceSlotChange.Log(id); } SlotChange slot = slotChangeFactory.NewInstance(id); _slotChanges.Add(slot); return((SlotChange)slot.AddedOrExisting()); }
public virtual void NotifySlotDeleted(int id, SlotChangeFactory slotChangeFactory ) { ProduceSlotChange(id, slotChangeFactory).NotifyDeleted(FreespaceManager()); }
internal virtual void NotifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory ) { ProduceSlotChange(id, slotChangeFactory).NotifySlotUpdated(FreespaceManager(), slot ); }
public virtual void NotifySlotCreated(int id, Slot slot, SlotChangeFactory slotChangeFactory ) { ProduceSlotChange(id, slotChangeFactory).NotifySlotCreated(slot); }
public void NotifySlotDeleted(int id, SlotChangeFactory slotChangeFactory) { WritePointer(id, Slot.Zero); }
public void NotifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory ) { WritePointer(id, slot); }
public int NewId(SlotChangeFactory slotChangeFactory) { return(_container.AllocatePointerSlot()); }
public virtual void NotifySlotDeleted(int id, SlotChangeFactory slotChangeFactory ) { _slotChanges.NotifySlotDeleted(id, slotChangeFactory); }
public virtual void NotifySlotUpdated(int id, Slot slot, SlotChangeFactory slotChangeFactory ) { _slotChanges.NotifySlotUpdated(id, slot, slotChangeFactory); }
public PersistentIntegerArray(SlotChangeFactory slotChangeFactory , ITransactionalIdSystem idSystem, int id) : base(idSystem) { _slotChangeFactory = slotChangeFactory; SetID(id); }