Ejemplo n.º 1
0
        public SnapshotIndexSet(IndexSetStore indexSetStore, IndexBlock[] blocks)
        {
            this.indexSetStore = indexSetStore;
            IndexBlocks = blocks;

            // Not disposed.
            disposed = false;
        }
Ejemplo n.º 2
0
        public SnapshotIndexSet(IndexSetStore indexSetStore, IndexBlock[] blocks)
        {
            this.indexSetStore = indexSetStore;
            IndexBlocks        = blocks;

            // Not disposed.
            disposed = false;
        }
Ejemplo n.º 3
0
        public StoreIndex(IndexSetStore indexSetStore, int indexNumber, int maxBlockSize, IEnumerable <IIndexBlock <int> > blocks)
            : base(blocks)
        {
            IndexSetStore = indexSetStore;
            IndexNumber   = indexNumber;
            MaxBlockSize  = maxBlockSize;

            deletedBlocks = new List <IMappedBlock>();
        }
Ejemplo n.º 4
0
            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;
            }
Ejemplo n.º 5
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;
        }
Ejemplo n.º 6
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;
        }
Ejemplo n.º 7
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));
 }