Click or drag to resize

VelocityDbComparerKey Class

The base class of for comparing persistent objects. If the Key objects implements IComparable then the NodeKeys are compared that way, otherwise the Id are compared
Inheritance Hierarchy

Namespace:  VelocityDb.Collection.Comparer
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public class VelocityDbComparer<Key> : OptimizedPersistable, 
	IComparer<Key>

Type Parameters

Key
The type of keys to compare

The VelocityDbComparerKey type exposes the following members.

Constructors
  NameDescription
Public methodVelocityDbComparerKey
Initializes a new instance of the VelocityDbComparerKey class
Top
Properties
  NameDescription
Public propertyAddOidCompare
The default compare compares the object Oid's but subclasses may not want to do so as a last compare before declaring objects as being equal.
Public propertyOidPartOfComparisonBytes
Is the Oid part of the comparison bytes? If so, we don't need to do a separate Oid compare when Oid is part of compare
Top
Methods
  NameDescription
Public methodCompare(Key, Key)
If the Key objects implements IComparable then the NodeKeys are compared that way, otherwise the Id are compared
Public methodCompare(Byte, Int32, Byte, Key)
Internal use, compares comparison array bytes
Public methodSetComparisonArrayFromObject
Comparators that use comparison arrays need to override this function. Given a Key object, set the comparisonArray bytes
Top
Extension Methods
  NameDescription
Public Extension MethodToStringDetails(SessionBase, Boolean)Overloaded.
Object details as a string
(Defined by Utilities.)
Public Extension MethodToStringDetails(Schema, TypeVersion, Boolean)Overloaded.
Currently only used by Database Manager
(Defined by Utilities.)
Top
See Also