public SnapshotIndexSet(IndexSetStore indexSetStore, IndexBlock[] blocks) { this.indexSetStore = indexSetStore; IndexBlocks = blocks; // Not disposed. disposed = false; }
public SnapshotIndexSet(IndexSetStore indexSetStore, IndexBlock[] blocks) { this.indexSetStore = indexSetStore; IndexBlocks = blocks; // Not disposed. disposed = false; }
public StoreIndex(IndexSetStore indexSetStore, int indexNumber, int maxBlockSize, IEnumerable <IIndexBlock <int> > blocks) : base(blocks) { IndexSetStore = indexSetStore; IndexNumber = indexNumber; MaxBlockSize = maxBlockSize; deletedBlocks = new List <IMappedBlock>(); }
public MappedBlock(IndexSetStore indexSetStore, long firstEntry, long lastEntry, long blockPointer, int size, byte compactType, int maxBlockSize) { IndexSetStore = indexSetStore; FirstEntry = firstEntry; LastEntry = lastEntry; BlockPointer = blockPointer; CompactType = compactType; this.maxBlockSize = maxBlockSize; Count = size; BaseArray = null; }
public IndexBlock(IndexSetStore indexSetStore, int indexNum, int blockSize, long startOffset) { this.indexSetStore = indexSetStore; this.indexNum = indexNum; BlockSize = blockSize; StartOffset = startOffset; // Read the index count var indexBlockArea = indexSetStore.Store.GetArea(startOffset); indexBlockArea.Position = 8; blockEntries = indexBlockArea.ReadInt8(); refCount = 0; }
public IndexBlock(IndexSetStore indexSetStore, int indexNum, int blockSize, long startOffset) { this.indexSetStore = indexSetStore; this.indexNum = indexNum; BlockSize = blockSize; StartOffset = startOffset; // Read the index count var indexBlockArea = indexSetStore.Store.GetArea(startOffset); indexBlockArea.Position = 8; blockEntries = indexBlockArea.ReadInt8(); refCount = 0; }
public static IMappedBlock NewMappedBlock(IndexSetStore indexSetStore, long firstEntry, long lastEntry, long blockPointer, int size, byte compactType, int blockSize) { return(new MappedBlock(indexSetStore, firstEntry, lastEntry, blockPointer, size, compactType, blockSize)); }