|
| MappedBlock (StoreIndex index) |
|
| MappedBlock (IndexSetStore indexSetStore, long firstEntry, long lastEntry, long blockPointer, int size, byte compactType, int maxBlockSize) |
|
long | CopyTo (IStore destStore) |
|
long | Flush () |
|
void | Dispose () |
|
| Block (IRequest request) |
|
void | Dispose () |
|
virtual IBlock | CreateBlock () |
|
bool | CanContain (int count) |
|
void | Add (T value) |
| Adss an int element to the block. More...
|
|
T | RemoveAt (int index) |
| Removes the element at the given index from the block. More...
|
|
int | IndexOf (T value) |
|
int | IndexOf (T value, int startIndex) |
|
void | Insert (T index, int value) |
| Inserts an element to the block at the given index. More...
|
|
void | MoveTo (IIndexBlock< T > destBlock, int destIndex, int count) |
|
void | CopyTo (IIndexBlock< T > destBlock) |
|
int | CopyTo (T[] array, int arrayIndex) |
|
void | Clear () |
| Clears the block of all elements. More...
|
|
int | BinarySearch (object key, IIndexComparer< T > comparer) |
|
int | SearchFirst (object key, IIndexComparer< T > comparer) |
|
int | SearchFirst (T value) |
|
int | SearchLast (object key, IIndexComparer< T > comparer) |
|
int | SearchLast (T value) |
|
|
IndexSetStore | IndexSetStore [get, private set] |
|
IStore | Store [get] |
|
long | FirstEntry [get, private set] |
|
long | LastEntry [get, private set] |
|
long | BlockPointer [get, private set] |
|
byte | CompactType [get, private set] |
|
override int | Top [get] |
|
override int | Bottom [get] |
|
override int | ArrayLength [get] |
|
IBlock | Parent [get, private set] |
|
IBlock | Next [get, set] |
|
IQuery | Query [get] |
|
IEventSource IEventSource. | ParentSource [get] |
|
IEnumerable< KeyValuePair< string, object > > IEventSource. | Metadata [get] |
|
IBlockContext | Context [get, private set] |
|
IContext IEventSource. | Context [get] |
|
new IBlockContext | Context [get] |
|
IBlock | Parent [get] |
|
IBlock | Next [get] |
|
IQuery | Query [get] |
|
IContext | Context [get] |
|
IEventSource | ParentSource [get] |
| Gets an optional parent source. More...
|
|
IEnumerable< KeyValuePair< string, object > > | Metadata [get] |
| Gets the list of metadata associated to the source. More...
|
|
long | FirstEntry [get] |
|
long | LastEntry [get] |
|
long | BlockPointer [get] |
|
byte | CompactType [get] |
|
IIndexBlock< T > | Next [get, set] |
| Gets or sets the next block in the hash. More...
|
|
IIndexBlock< T > | Previous [get, set] |
| Gets or sets the previous block in the hash. More...
|
|
bool | HasChanged [get] |
|
int | Count [get] |
|
bool | IsFull [get] |
| Gets a value indicating if the block is full. More...
|
|
bool | IsEmpty [get] |
| Gets a value indicating if the block is empty. More...
|
|
T | Top [get] |
| Gets the element at the top of the block. More...
|
|
T | Bottom [get] |
| Gets the element at the bottom of the block. More...
|
|
T | this[int index] [get, set] |
| Gets or sets the element at the given index within the block. More...
|
|
Definition at line 94 of file StoreIndex.cs.
Deveel.Data.Index.StoreIndex.MappedBlock.MappedBlock |
( |
StoreIndex |
index | ) |
|
|
inline |
Definition at line 107 of file StoreIndex.cs.
108 : base(index.MaxBlockSize) {
IndexSetStore IndexSetStore
IndexSetStore(IDatabaseContext databaseContext, IStore store)
readonly int maxBlockSize
Deveel.Data.Index.StoreIndex.MappedBlock.MappedBlock |
( |
IndexSetStore |
indexSetStore, |
|
|
long |
firstEntry, |
|
|
long |
lastEntry, |
|
|
long |
blockPointer, |
|
|
int |
size, |
|
|
byte |
compactType, |
|
|
int |
maxBlockSize |
|
) |
| |
|
inline |
Definition at line 114 of file StoreIndex.cs.
IndexSetStore IndexSetStore
readonly int maxBlockSize
long Deveel.Data.Index.StoreIndex.MappedBlock.CopyTo |
( |
IStore |
destStore | ) |
|
|
inline |
Implements Deveel.Data.Index.IMappedBlock.
Definition at line 168 of file StoreIndex.cs.
172 int areaSize = (
Count * entrySize);
176 long destOffset = dest.
Id;
IArea CreateArea(long size)
Allocates a block of memory in the store of the specified size and returns an IArea object that can b...
void CopyTo(IArea destArea, int size)
Copies the given amount of bytes from the current position of the this area to another one...
IArea GetArea(long id, bool readOnly)
Returns an object that allows for the contents of an area (represented by the id parameter) to be Re...
long Id
Returns the unique identifier that represents this area.
void Deveel.Data.Index.StoreIndex.MappedBlock.Dispose |
( |
| ) |
|
|
inline |
long Deveel.Data.Index.StoreIndex.MappedBlock.Flush |
( |
| ) |
|
|
inline |
Implements Deveel.Data.Index.IMappedBlock.
Definition at line 183 of file StoreIndex.cs.
189 for (
int i = 0; i <
Count; ++i) {
190 long v = BaseArray[i];
196 long lv = largestVal;
197 if (lv >> 7 == 0 || lv >> 7 == -1) {
199 }
else if (lv >> 15 == 0 || lv >> 15 == -1) {
201 }
else if (lv >> 23 == 0 || lv >> 23 == -1) {
213 int areaSize = (Count * entrySize);
216 byte[] arr =
new byte[areaSize];
219 for (
int i = 0; i <
Count; ++i) {
220 int v = BaseArray[i];
221 for (
int n = entrySize - 1; n >= 0; --n) {
232 a.Write(arr, 0, areaSize);
IArea CreateArea(long size)
Allocates a block of memory in the store of the specified size and returns an IArea object that can b...
static int URShift(int number, int bits)
Operates a shift on the given integer by the number of bits specified.
A wrapper for an array of byte.
override int [] Deveel.Data.Index.StoreIndex.MappedBlock.GetArray |
( |
bool |
readOnly | ) |
|
|
inlineprotected |
Definition at line 241 of file StoreIndex.cs.
245 if (BaseArray != null) {
256 int areaSize = (
Count * entrySize);
259 byte[] buf =
new byte[areaSize];
262 }
catch (IOException e) {
263 throw new InvalidOperationException(
"IO Error: " + e.Message);
268 for (
int i = 0; i <
Count; ++i) {
269 int v = (((int)buf[p]) << ((entrySize - 1) * 8));
271 for (
int n = entrySize - 2; n >= 0; --n) {
272 v = v | ((((int)buf[p]) & 0x0FF) << (n * 8));
int Read(byte[] buffer, int offset, int length)
Reads an array of bytes from the underlying IArea and advances the position by length ...
readonly int maxBlockSize
IArea GetArea(long id, bool readOnly)
Returns an object that allows for the contents of an area (represented by the id parameter) to be Re...
void PrepareMutate(bool readOnly)
void Deveel.Data.Index.StoreIndex.MappedBlock.PrepareMutate |
( |
bool |
readOnly | ) |
|
|
inlineprivate |
Definition at line 160 of file StoreIndex.cs.
163 BaseArray = (
int[])BaseArray.Clone();
object Deveel.Data.Index.StoreIndex.MappedBlock.blockLock = new object() |
|
private |
readonly int Deveel.Data.Index.StoreIndex.MappedBlock.maxBlockSize |
|
private |
bool Deveel.Data.Index.StoreIndex.MappedBlock.mutableBlock |
|
private |
override int Deveel.Data.Index.StoreIndex.MappedBlock.ArrayLength |
|
getprotected |
long Deveel.Data.Index.StoreIndex.MappedBlock.BlockPointer |
|
getprivate set |
override int Deveel.Data.Index.StoreIndex.MappedBlock.Bottom |
|
get |
byte Deveel.Data.Index.StoreIndex.MappedBlock.CompactType |
|
getprivate set |
long Deveel.Data.Index.StoreIndex.MappedBlock.FirstEntry |
|
getprivate set |
IndexSetStore Deveel.Data.Index.StoreIndex.MappedBlock.IndexSetStore |
|
getprivate set |
long Deveel.Data.Index.StoreIndex.MappedBlock.LastEntry |
|
getprivate set |
IStore Deveel.Data.Index.StoreIndex.MappedBlock.Store |
|
getprivate |
override int Deveel.Data.Index.StoreIndex.MappedBlock.Top |
|
get |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Index/StoreIndex.cs