BlockIndex
Description
- Derived from
-
BlockIndexBase abstract
- Extended by
-
SimpleBlockIndex sealed
Abstract base class for persistent dictionaries that use a block-based index data structure (B-Tree) for efficiency.
Public / Constructors
Create
Creates a new block index in the given block storage.
The returned block index belongs to storage in and will be disposed with it.
- IOException
-
If an I/O error has occurred.
New
Creates a new block index in the given block storage.
The returned block index belongs to storage in and will be disposed with it.
- IOException
-
If an I/O error has occurred.
Open
Opens an existing block index in the given block storage.
The returned block index belong to storage in and will be disposed with it.
- IOException
-
If an I/O error has occurred.
Public / Methods
DeleteKey
Deletes an entry from the block tree.
If no entry exists for the given key, the method silently returns.
- IOException
-
If an I/O error has occurred.
DeleteValue
Deletes an entry from the block tree.
If no entry exists for the given key, the method silently returns.
- IOException
-
If an I/O error has occurred.
FindFromTo
Finds all entries that are included in the given key range.
- IOException
-
If an I/O error has occurred.
FindMaximum
Tries to find an entry in the block tree.
All entries that have keys less than or equal to the given upper bound are included in the search. From all included entries, the one with the biggest key value is returned.
- IOException
-
If an I/O error has occurred.
FindMinimum
Tries to find an entry in the block tree.
All entries that have keys greater than or equal to the given lower bound are included in the search. From all included entries, the one with the smallest key value is returned.
- IOException
-
If an I/O error has occurred.
Insert
Inserts or updates an entry in the block tree.
If an entry already exists for the given value in, it will be updated. If no entry exists, a new one will be inserted into the index.
- IOException
-
If an I/O error has occurred.
Public / Attributes
MaximumValue
Returns the maximum entry value in the index.
- IOException
-
If an I/O error has occurred.
MinimumValue
Returns the minimum entry value in the index.
- IOException
-
If an I/O error has occurred.