Table MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The Table type exposes the following members.
Constructors

  NameDescription
Protected methodTable
Initializes a new instance of the Table class
Back to Top
Methods

  NameDescription
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGet
Retrieves an item from this table by key where item age is less or equal to requested, or null if it does not exist
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodGetOrPut TContext 
Retrieves an item from this table by key where item age is less or equal to requested, or calls the itemFactory function and inserts the value in the store
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodPut(UInt64, Object, Int32, Int32, Nullable DateTime )
Puts a key-identified item into this table. If item with such key is already in this table then replaces it and returns false, returns true otherwise
Public methodPut(UInt64, Object, CacheRec , Int32, Int32, Nullable DateTime )
Puts a key-identified item into this table. If item with such key is already in this table then replaces it and returns false, returns true otherwise
Public methodRemove
Removes a key-identified item from the named table returning true when item was deleted or false when item was not found
Protected methodSweep
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberBUCKET_COUNT_DEFAULT
Public fieldStatic memberMAX_AGE_SEC_DEFAULT
Public fieldStatic memberMAX_AGE_SEC_MINIMUM
Public fieldStatic memberREC_PER_PAGE_DEFAULT
Protected fieldstat_ComplexHitCount
how many complex key hits - get was called
Protected fieldstat_ComplexMissCount
how many complex key misses - get was called
Protected fieldstat_HitCount
how many hits - get was called
Protected fieldstat_LastTime
Protected fieldstat_MissCount
how many misses - get was called
Protected fieldstat_PutCollisionCount
how many times new value overrode existing because of collision
Protected fieldstat_PutCount
how many times put was called
Protected fieldstat_PutInsertCount
how many times new value successfully inserted without collision
Protected fieldstat_PutPageCreateCount
how many times bucket collision occured that resulted in page creation
Protected fieldstat_PutPriorityPreventedCollisionCount
how many times priority prevented collision
Protected fieldstat_PutReplaceCount
how many times new value successfully replaced existing one (by the same key) without collision
Protected fieldstat_RemoveHitCount
how many records have been found and removed
Protected fieldstat_RemoveMissCount
how many records have been sought to be removed but were not found
Protected fieldstat_RemovePageCount
how many pages have been deleted, a page gets deleted when there are no records stored in it
Protected fieldstat_SweepPageCount
how many pages swept
Protected fieldstat_SweepRemoveCount
how many records removed by sweep
Protected fieldstat_SweepTableCount
how many times swept
Protected fieldstat_ValueFactoryCount
how many times factory called from GetOrPut
Back to Top
Properties

  NameDescription
Public propertyBucketCount
Returns how many slots/buckets are pre-allocated per table, the higher the number the more memory will be reserved at table construction time, every slot is a reference (4 bytes on 32bit systems, 8 bytes on 64bit). For optimal performance this number should be around 75% of total record count stored in the table (table load factor).
Public propertyBucketPageLoadFactor
Returns the ratio of how many buckets are loaded with pages vs. bucket count
Public propertyCapacity
Returns the maximum number of items that this table can hold at any given time given that no items will have any key hash collisions
Public propertyCount
Returns item count in the table
Public propertyLockCount
Returns how many locks can be used for thread coordination during table changes
Public propertyMaxAgeSec
Gets/sets maximum age of items in the table expressed in seconds. After this age is exceeded, the system will delete entries. The system does not guarantee that items will expire right on time, however it does guarantee that items will be available for at least this long.
Public propertyName
Returns table name which is a unique string within the cache store
Public propertyPageCount
Returns page count in the table
Public propertyParallelSweep
When enabled, uses parallel execution while sweeping table buckets, otherwise sweeps sequentially (default behavior)
Public propertyRecPerPage
Returns how many slots are pre-allocated per table's bucket(page) when more than one item produces hash collision. The higher the number, the more primary hash collisions can be accomodated by re-hashing on pages (secondary hash table within primary buckets)
Public propertyStatComplexHitCount
Returns hit count stats for using complex keys
Public propertyStatComplexMissCount
Returns miss count stats for using complex keys
Public propertyStatHitCount
Returns hit count stats
Public propertyStatMissCount
Returns miss count stats
Public propertyStore
Returns the store instance that this table is a part of
Back to Top
See Also