DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Package Functions | Private Attributes | List of all members
Deveel.Data.Caching.DataCellCache.DCCacheKey Struct Reference

Struct that creates an object that hashes nicely over the cache source. More...

Public Member Functions

override bool Equals (Object ob)
 
override int GetHashCode ()
 

Package Functions

 DCCacheKey (int tableId, short column, int row)
 

Private Attributes

readonly short column
 
readonly int row
 
readonly int tableId
 

Detailed Description

Struct that creates an object that hashes nicely over the cache source.

Definition at line 346 of file DataCellCache.cs.

Constructor & Destructor Documentation

Deveel.Data.Caching.DataCellCache.DCCacheKey.DCCacheKey ( int  tableId,
short  column,
int  row 
)
inlinepackage

Definition at line 351 of file DataCellCache.cs.

Member Function Documentation

override bool Deveel.Data.Caching.DataCellCache.DCCacheKey.Equals ( Object  ob)
inline

Definition at line 357 of file DataCellCache.cs.

357  {
358  DCCacheKey destKey = (DCCacheKey)ob;
359  return row == destKey.row &&
360  column == destKey.column &&
361  tableId == destKey.tableId;
362  }
DCCacheKey(int tableId, short column, int row)
override int Deveel.Data.Caching.DataCellCache.DCCacheKey.GetHashCode ( )
inline

Definition at line 364 of file DataCellCache.cs.

364  {
365  // Yicks - this one is the best by far!
366  return (((int) column + tableId + (row*189977))*50021) << 4;
367  }

Member Data Documentation

readonly short Deveel.Data.Caching.DataCellCache.DCCacheKey.column
private

Definition at line 347 of file DataCellCache.cs.

readonly int Deveel.Data.Caching.DataCellCache.DCCacheKey.row
private

Definition at line 348 of file DataCellCache.cs.

readonly int Deveel.Data.Caching.DataCellCache.DCCacheKey.tableId
private

Definition at line 349 of file DataCellCache.cs.


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