Definition at line 26 of file TableStateStore.cs.
Deveel.Data.TableStateStore.TableStateStore |
( |
IStore |
store | ) |
|
|
inline |
void Deveel.Data.TableStateStore.AddDeleteResource |
( |
TableState |
resource | ) |
|
|
inline |
void Deveel.Data.TableStateStore.AddVisibleResource |
( |
TableState |
resource | ) |
|
|
inline |
bool Deveel.Data.TableStateStore.ContainsVisibleResource |
( |
int |
tableId | ) |
|
|
inline |
Definition at line 190 of file TableStateStore.cs.
193 if (resource.TableId == tableId)
List< TableState > visibleList
long Deveel.Data.TableStateStore.Create |
( |
| ) |
|
|
inline |
Definition at line 93 of file TableStateStore.cs.
102 visTablesArea.WriteInt4(1);
103 visTablesArea.WriteInt8(0);
104 visTablesArea.Flush();
105 delTablesArea.WriteInt4(1);
106 delTablesArea.WriteInt8(0);
107 delTablesArea.Flush();
111 long headerP = headerWriter.
Id;
112 headerWriter.WriteInt4(
Magic);
113 headerWriter.WriteInt4(0);
114 headerWriter.WriteInt8(0);
117 headerWriter.Flush();
IArea CreateArea(long size)
Allocates a block of memory in the store of the specified size and returns an IArea object that can b...
List< TableState > deleteList
List< TableState > visibleList
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.TableStateStore.Flush |
( |
| ) |
|
|
inline |
Definition at line 240 of file TableStateStore.cs.
242 bool changes =
false;
long WriteListToStore(IEnumerable< TableState > list)
long Position
Returns or sets the current position of the pointer within the area.
void Lock()
This method is called before the start of a sequence of Write commands between consistant states of s...
void DeleteArea(long id)
Deletes an area that was previously allocated by the CreateArea method by the area id...
List< TableState > deleteList
void Unlock()
This method is called after the end of a sequence of Write commands between consistant states of some...
List< TableState > visibleList
IEnumerable<TableState> Deveel.Data.TableStateStore.GetDeleteList |
( |
| ) |
|
|
inline |
IEnumerable<TableState> Deveel.Data.TableStateStore.GetVisibleList |
( |
| ) |
|
|
inline |
int Deveel.Data.TableStateStore.NextTableId |
( |
| ) |
|
|
inline |
Definition at line 156 of file TableStateStore.cs.
long Position
Returns or sets the current position of the pointer within the area.
void Lock()
This method is called before the start of a sequence of Write commands between consistant states of s...
void Unlock()
This method is called after the end of a sequence of Write commands between consistant states of some...
void Deveel.Data.TableStateStore.Open |
( |
long |
offset | ) |
|
|
inline |
Definition at line 132 of file TableStateStore.cs.
136 if (magicValue !=
Magic)
137 throw new IOException(
"Magic value for state header area is incorrect.");
140 throw new IOException(
"Unknown version for state header area.");
List< TableState > deleteList
List< TableState > visibleList
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 ReadStateResourceList(IList< TableState > list, long pointer)
void Deveel.Data.TableStateStore.ReadStateResourceList |
( |
IList< TableState > |
list, |
|
|
long |
pointer |
|
) |
| |
|
inlineprivate |
Definition at line 50 of file TableStateStore.cs.
51 using (var reader =
new BinaryReader(
Store.GetAreaInputStream(pointer), Encoding.Unicode)) {
54 int count = (int) reader.ReadInt64();
55 for (
int i = 0; i < count; ++i) {
56 long tableId = reader.ReadInt64();
57 string name = reader.ReadString();
59 list.Add(
new TableState((
int)tableId, name));
void Deveel.Data.TableStateStore.RemoveDeleteResource |
( |
string |
name | ) |
|
|
inline |
Definition at line 221 of file TableStateStore.cs.
List< TableState > deleteList
static void RemoveState(IList< TableState > list, String name)
static void Deveel.Data.TableStateStore.RemoveState |
( |
IList< TableState > |
list, |
|
|
String |
name |
|
) |
| |
|
inlinestaticprivate |
Definition at line 228 of file TableStateStore.cs.
230 for (
int i = 0; i < sz; ++i) {
232 if (name.Equals(state.SourceName)) {
237 throw new Exception(
"Couldn't find resource '" + name +
"' in list.");
void Deveel.Data.TableStateStore.RemoveVisibleResource |
( |
string |
name | ) |
|
|
inline |
Definition at line 214 of file TableStateStore.cs.
List< TableState > visibleList
static void RemoveState(IList< TableState > list, String name)
static byte [] Deveel.Data.TableStateStore.SerializeResources |
( |
IEnumerable< TableState > |
list | ) |
|
|
inlinestaticprivate |
Definition at line 64 of file TableStateStore.cs.
65 using (var stream =
new MemoryStream()) {
66 using (var writer =
new BinaryWriter(stream, Encoding.Unicode)) {
68 int sz = list.Count();
69 writer.Write((
long) sz);
70 foreach (var state
in list) {
71 writer.Write((
long)state.TableId);
72 writer.Write(state.SourceName);
77 return stream.ToArray();
long Deveel.Data.TableStateStore.WriteListToStore |
( |
IEnumerable< TableState > |
list | ) |
|
|
inlineprivate |
Definition at line 82 of file TableStateStore.cs.
87 area.Write(bytes, 0, bytes.Length);
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 byte[] SerializeResources(IEnumerable< TableState > list)
long Id
Returns the unique identifier that represents this area.
int Deveel.Data.TableStateStore.currentTableId |
|
private |
long Deveel.Data.TableStateStore.delAreaPointer |
|
private |
List<TableState> Deveel.Data.TableStateStore.deleteList |
|
private |
bool Deveel.Data.TableStateStore.delListChange |
|
private |
IArea Deveel.Data.TableStateStore.headerArea |
|
private |
const int Deveel.Data.TableStateStore.Magic = 0x0BAC8001 |
|
private |
long Deveel.Data.TableStateStore.visAreaPointer |
|
private |
List<TableState> Deveel.Data.TableStateStore.visibleList |
|
private |
bool Deveel.Data.TableStateStore.visListChange |
|
private |
IStore Deveel.Data.TableStateStore.Store |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Tables/TableStateStore.cs