|
| TableCellCache (IConfiguration configuration) |
|
void | Dispose () |
|
void | Set (CachedCell cell) |
|
bool | TryGetValue (CellKey key, out DataObject value) |
|
void | Remove (CellKey key) |
|
void | Clear () |
|
| TableCellCache (IDatabaseContext context, ICache baseCase, int maxSize, int maxCellSize) |
|
| TableCellCache (IDatabaseContext context, ICache baseCase, int maxSize, int maxCellSize, int hashSize) |
|
void | Clear () |
|
void | AlterCacheDynamics (int maxCacheSize, int maxCellSize) |
|
void | Set (int tableKey, int row, int column, DataObject value) |
|
DataObject | Get (int tableKey, int row, int column) |
|
DataObject | Remove (int tableKey, int row, int column) |
|
Definition at line 22 of file TableCellCache.cs.
Deveel.Data.Caching.TableCellCache.TableCellCache |
( |
IConfiguration |
configuration | ) |
|
|
inline |
Deveel.Data.Caching.TableCellCache.~TableCellCache |
( |
| ) |
|
|
inlineprivate |
Deveel.Data.Caching.TableCellCache.TableCellCache |
( |
IDatabaseContext |
context, |
|
|
ICache |
baseCase, |
|
|
int |
maxSize, |
|
|
int |
maxCellSize |
|
) |
| |
|
inline |
Deveel.Data.Caching.TableCellCache.TableCellCache |
( |
IDatabaseContext |
context, |
|
|
ICache |
baseCase, |
|
|
int |
maxSize, |
|
|
int |
maxCellSize, |
|
|
int |
hashSize |
|
) |
| |
|
inline |
void Deveel.Data.Caching.TableCellCache.AlterCacheDynamics |
( |
int |
maxCacheSize, |
|
|
int |
maxCellSize |
|
) |
| |
|
inline |
static int Deveel.Data.Caching.TableCellCache.AmountMemory |
( |
DataObject |
value | ) |
|
|
inlinestaticprivate |
static int Deveel.Data.Caching.TableCellCache.AmountMemory |
( |
DataObject |
value | ) |
|
|
inlinestaticprivate |
void Deveel.Data.Caching.TableCellCache.Clear |
( |
| ) |
|
|
inline |
void Deveel.Data.Caching.TableCellCache.Clear |
( |
| ) |
|
|
inline |
void Deveel.Data.Caching.TableCellCache.Configure |
( |
IConfiguration |
config | ) |
|
|
inlineprivate |
Definition at line 71 of file TableCellCache.cs.
73 var maxSize = config.GetInt32(
"system.tableCellCache.maxSize",
DefaultMaxSize);
76 var baseCache =
new SizeLimitedCache(maxSize);
77 cache =
new Cache(
this, baseCache, hashSize, maxSize);
const int DefaultHashSize
const int DefaultMaxCellSize
void Deveel.Data.Caching.TableCellCache.Dispose |
( |
| ) |
|
|
inline |
void Deveel.Data.Caching.TableCellCache.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprivate |
DataObject Deveel.Data.Caching.TableCellCache.Get |
( |
int |
tableKey, |
|
|
int |
row, |
|
|
int |
column |
|
) |
| |
|
inline |
void Deveel.Data.Caching.TableCellCache.ReduceCacheSize |
( |
long |
value | ) |
|
|
inlineprivate |
void Deveel.Data.Caching.TableCellCache.ReduceCacheSize |
( |
long |
value | ) |
|
|
inlineprivate |
void Deveel.Data.Caching.TableCellCache.Remove |
( |
string |
database, |
|
|
int |
tableId, |
|
|
long |
rowNumber, |
|
|
int |
columnOffset |
|
) |
| |
|
inlineprivate |
Definition at line 110 of file TableCellCache.cs.
112 var cell =
cache.
Remove(
new CacheKey(database, tableId, (
int)rowNumber, (
short)columnOffset));
object Remove(Object key)
Removes a node for the given key from the cache.
static int AmountMemory(DataObject value)
DataObject Deveel.Data.Caching.TableCellCache.Remove |
( |
int |
tableKey, |
|
|
int |
row, |
|
|
int |
column |
|
) |
| |
|
inline |
Definition at line 114 of file TableCellCache.old.cs.
116 var cell = (DataObject)
cache.
Remove(
new CacheKey(tableKey, row, (
short)column));
object Remove(Object key)
Removes a node for the given key from the cache.
static int AmountMemory(DataObject value)
void Deveel.Data.Caching.TableCellCache.Remove |
( |
CellKey |
key | ) |
|
|
inline |
void Deveel.Data.Caching.TableCellCache.Set |
( |
int |
tableKey, |
|
|
int |
row, |
|
|
int |
column, |
|
|
DataObject |
value |
|
) |
| |
|
inline |
Definition at line 76 of file TableCellCache.old.cs.
77 if (!value.IsCacheable)
78 throw new ArgumentException(
String.Format(
"A value of type '{0}' cannot be stored in cache.", value.Type));
84 var key =
new CacheKey(tableKey, row, (
short)column);
89 if (!Equals(removedCell, null)) {
99 Remove(tableKey, row, column);
A long string in the system.
void Remove(string database, int tableId, long rowNumber, int columnOffset)
bool Set(object key, object value)
Puts an object into the cache with the given key.
object Remove(Object key)
Removes a node for the given key from the cache.
static int AmountMemory(DataObject value)
void Deveel.Data.Caching.TableCellCache.Set |
( |
CachedCell |
cell | ) |
|
|
inline |
Implements Deveel.Data.Caching.ITableCellCache.
Definition at line 80 of file TableCellCache.cs.
81 var value = cell.Value;
83 if (!value.IsCacheable)
90 var key =
new CacheKey(cell.Database, cell.TableId, (
int)cell.RowNumber, (
short)cell.ColumnOffset);
95 if (!Equals(removedCell, null)) {
105 Remove(cell.Database, cell.TableId, cell.RowNumber, cell.ColumnOffset);
void Remove(string database, int tableId, long rowNumber, int columnOffset)
bool Set(object key, object value)
Puts an object into the cache with the given key.
object Remove(Object key)
Removes a node for the given key from the cache.
static int AmountMemory(DataObject value)
bool Deveel.Data.Caching.TableCellCache.TryGetValue |
( |
CellKey |
key, |
|
|
out DataObject |
value |
|
) |
| |
|
inline |
Implements Deveel.Data.Caching.ITableCellCache.
Definition at line 122 of file TableCellCache.cs.
124 var database = key.Database;
125 var tableKey = key.RowId.TableId;
126 var row = key.RowId.RowNumber;
127 var columnIndex = key.ColumnOffset;
130 if (!
cache.
TryGet(
new CacheKey(database, tableKey, row, (
short)columnIndex), out obj)) {
135 value = (DataObject) obj;
bool TryGet(object key, out object value)
Tries to get an object for the given key from the underlying cache system.
Cache Deveel.Data.Caching.TableCellCache.cache |
|
private |
const int Deveel.Data.Caching.TableCellCache.DefaultHashSize = 88547 |
const int Deveel.Data.Caching.TableCellCache.DefaultMaxCellSize = 1024*64 |
const int Deveel.Data.Caching.TableCellCache.DefaultMaxSize = 512*512 |
long Deveel.Data.Caching.TableCellCache.size |
|
private |
int Deveel.Data.Caching.TableCellCache.MaxCellSize |
|
getprivate set |
long Deveel.Data.Caching.TableCellCache.Size |
|
get |
The documentation for this class was generated from the following files:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Caching/TableCellCache.cs
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Caching/TableCellCache.old.cs