DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Index.StoreIndex Class Reference
Inheritance diagram for Deveel.Data.Index.StoreIndex:
Deveel.Data.Index.BlockIndex< int > Deveel.Data.Index.IIndex

Classes

class  MappedBlock
 

Public Member Functions

 StoreIndex (IndexSetStore indexSetStore, int indexNumber, int maxBlockSize, IEnumerable< IIndexBlock< int >> blocks)
 
void Dispose ()
 
- Public Member Functions inherited from Deveel.Data.Index.BlockIndex< int >
 BlockIndex ()
 Constructs an index with no values. More...
 
 BlockIndex (IEnumerable< T > values)
 
 BlockIndex (IIndex< T > index)
 
 BlockIndex (IEnumerable< IIndexBlock< T >> blocks)
 

Static Public Member Functions

static IMappedBlock NewMappedBlock (IndexSetStore indexSetStore, long firstEntry, long lastEntry, long blockPointer, int size, byte compactType, int blockSize)
 

Protected Member Functions

override IIndexBlock< int > NewBlock ()
 
override void OnDeleteBlock (IIndexBlock< int > block)
 
- Protected Member Functions inherited from Deveel.Data.Index.BlockIndex< int >
override IIndexBlock< T > NewBlock ()
 

Properties

int IndexNumber [get, private set]
 
int MaxBlockSize [get, private set]
 
IndexSetStore IndexSetStore [get, private set]
 
IEnumerable< IIndexBlock< int > > AllBlocks [get]
 
IEnumerable< IMappedBlockDeletedBlocks [get]
 

Private Member Functions

void AssertNotDisposed ()
 
void Dispose (bool disposing)
 

Private Attributes

List< IMappedBlockdeletedBlocks
 
bool disposed
 

Detailed Description

Definition at line 25 of file StoreIndex.cs.

Constructor & Destructor Documentation

Deveel.Data.Index.StoreIndex.StoreIndex ( IndexSetStore  indexSetStore,
int  indexNumber,
int  maxBlockSize,
IEnumerable< IIndexBlock< int >>  blocks 
)
inline

Definition at line 30 of file StoreIndex.cs.

31  : base(blocks) {
32  IndexSetStore = indexSetStore;
33  IndexNumber = indexNumber;
34  MaxBlockSize = maxBlockSize;
35 
36  deletedBlocks = new List<IMappedBlock>();
37  }
IndexSetStore IndexSetStore
Definition: StoreIndex.cs:44
List< IMappedBlock > deletedBlocks
Definition: StoreIndex.cs:26

Member Function Documentation

void Deveel.Data.Index.StoreIndex.AssertNotDisposed ( )
inlineprivate

Definition at line 54 of file StoreIndex.cs.

54  {
55  if (disposed)
56  throw new ObjectDisposedException(GetType().FullName);
57  }
void Deveel.Data.Index.StoreIndex.Dispose ( )
inline

Definition at line 69 of file StoreIndex.cs.

69  {
70  Dispose(true);
71  GC.SuppressFinalize(this);
72  }
void Deveel.Data.Index.StoreIndex.Dispose ( bool  disposing)
inlineprivate

Definition at line 74 of file StoreIndex.cs.

74  {
75  if (!disposed) {
76  if (disposing) {
77  if (deletedBlocks != null)
78  deletedBlocks.Clear();
79  }
80 
81  IndexSetStore = null;
82  deletedBlocks = null;
83  disposed = true;
84  }
85  }
IndexSetStore IndexSetStore
Definition: StoreIndex.cs:44
List< IMappedBlock > deletedBlocks
Definition: StoreIndex.cs:26
override IIndexBlock<int> Deveel.Data.Index.StoreIndex.NewBlock ( )
inlineprotected

Definition at line 59 of file StoreIndex.cs.

59  {
61 
62  return new MappedBlock(this);
63  }
static IMappedBlock Deveel.Data.Index.StoreIndex.NewMappedBlock ( IndexSetStore  indexSetStore,
long  firstEntry,
long  lastEntry,
long  blockPointer,
int  size,
byte  compactType,
int  blockSize 
)
inlinestatic

Definition at line 87 of file StoreIndex.cs.

88  {
89  return new MappedBlock(indexSetStore, firstEntry, lastEntry, blockPointer, size, compactType, blockSize);
90  }
override void Deveel.Data.Index.StoreIndex.OnDeleteBlock ( IIndexBlock< int >  block)
inlineprotected

Definition at line 65 of file StoreIndex.cs.

65  {
66  deletedBlocks.Add((IMappedBlock) block);
67  }
List< IMappedBlock > deletedBlocks
Definition: StoreIndex.cs:26

Member Data Documentation

List<IMappedBlock> Deveel.Data.Index.StoreIndex.deletedBlocks
private

Definition at line 26 of file StoreIndex.cs.

bool Deveel.Data.Index.StoreIndex.disposed
private

Definition at line 28 of file StoreIndex.cs.

Property Documentation

IEnumerable<IIndexBlock<int> > Deveel.Data.Index.StoreIndex.AllBlocks
get

Definition at line 46 of file StoreIndex.cs.

IEnumerable<IMappedBlock> Deveel.Data.Index.StoreIndex.DeletedBlocks
get

Definition at line 50 of file StoreIndex.cs.

int Deveel.Data.Index.StoreIndex.IndexNumber
getprivate set

Definition at line 40 of file StoreIndex.cs.

IndexSetStore Deveel.Data.Index.StoreIndex.IndexSetStore
getprivate set

Definition at line 44 of file StoreIndex.cs.

int Deveel.Data.Index.StoreIndex.MaxBlockSize
getprivate set

Definition at line 42 of file StoreIndex.cs.


The documentation for this class was generated from the following file: