public void Add(string storeName, IIndexStore store, INodeReference node) { IndexStoreInformation ni = new IndexStoreInformation(storeName, store, node); if (_nodeInfo == null) { _nodeInfo = ni; _nodeInfoMaxCount = _nodeInfoMaxCount < 1 ? (ushort)1 : _nodeInfoMaxCount; } else { if (_nodeInfo is IndexStoreInformation) { ClusteredList <IndexStoreInformation> _list = new ClusteredList <IndexStoreInformation>(); _list.Add((IndexStoreInformation)_nodeInfo); _list.Add(ni); _nodeInfo = _list; if (_list.Count > _nodeInfoMaxCount) { _nodeInfoMaxCount = (ushort)_list.Count; } } else { ClusteredList <IndexStoreInformation> _list = ((ClusteredList <IndexStoreInformation>)_nodeInfo); _list.Add(ni); if (_list.Count > _nodeInfoMaxCount) { _nodeInfoMaxCount = (ushort)_list.Count; } } } _indexInformationSize += (ushort)ni.IndexInMemorySize; }
public void Add(string storeName, IIndexStore store, INodeReference node) { IndexStoreInformation ni = new IndexStoreInformation(storeName, store, node); if (_nodeInfo == null) { _nodeInfo = ni; _nodeInfoMaxCount = _nodeInfoMaxCount < 1 ? (ushort)1 : _nodeInfoMaxCount; } else { if (_nodeInfo is IndexStoreInformation) { ClusteredList<IndexStoreInformation> _list = new ClusteredList<IndexStoreInformation>(); _list.Add((IndexStoreInformation)_nodeInfo); _list.Add(ni); _nodeInfo = _list; if (_list.Count > _nodeInfoMaxCount) _nodeInfoMaxCount = (ushort)_list.Count; } else { ClusteredList<IndexStoreInformation> _list = ((ClusteredList<IndexStoreInformation>)_nodeInfo); _list.Add(ni); if (_list.Count > _nodeInfoMaxCount) _nodeInfoMaxCount = (ushort)_list.Count; } } _indexInformationSize += (ushort)ni.IndexInMemorySize; }
public void Add(string storeName,IIndexStore store, RedBlackNodeReference node) { IndexStoreInformation ni = new IndexStoreInformation(storeName, store, node); _nodeInfo.Add(ni); if (_nodeInfo.Count > _nodeInfoMaxCount) _nodeInfoMaxCount = _nodeInfo.Count; _indexInformationSize += (int)ni.IndexInMemorySize; }
public void Add(string storeName, IIndexStore store, RedBlackNodeReference node) { IndexStoreInformation ni = new IndexStoreInformation(storeName, store, node); _nodeInfo.Add(ni); if (_nodeInfo.Count > _nodeInfoMaxCount) { _nodeInfoMaxCount = _nodeInfo.Count; } _indexInformationSize += (int)ni.IndexInMemorySize; }