API Diff between 2.12.0 and 5.0.5
150 Additions
186 Removals
VelocityDB.LZ4n
VelocityDB.Server
VelocityDb
-
public class AllObjects<T> : IEnumerable<T>
-
public static class AllObjectsExtension
-
public sealed class AutoIncrement : Attribute
-
public class AutoPlacement : Placement
- public ulong Count { get; }
- public ulong Counter { get; set; }
-
public class BlockingQueue<T>
-
public class Database : OptimizedPersistable, IEnumerable<object>
-
public class DatabaseDoesNotExistException : Exception
-
public class DatabaseLocation : OptimizedPersistable, IComparable, IEnumerable<Database>
- public compressionKind CompressPages { get; set; }
- public bool CompressPages { get; set; }
- public DatabaseLocation(string inHost, string dir, uint dbStartNum, uint dbEndNum, SessionBase session)
- public DatabaseLocation(string inHost, string dir, uint dbStartNum, uint dbEndNum, SessionBase session, compressionKind compressPages, encryptionKind pageEncryption = 0, bool isAbackupLocation = false, DatabaseLocation backupOfOrForLocation = null)
- public DatabaseLocation(string inHost, string dir, uint dbStartNum, uint dbEndNum, SessionBase session, bool compressPages = true, encryptionKind pageEncryption = 0, bool isAbackupLocation = false, DatabaseLocation backupOfOrForLocation = null)
- public IEnumerator<Database> GetEnumerator()
- public IEnumerator GetEnumerator()
-
public class DatabaseLocations : OptimizedPersistable, IEnumerable<DatabaseLocation>
-
public class DataCache
-
public class InTransactionException : Exception
-
public class InUpdateTransactionException : Exception
-
public interface IOptimizedPersistable : IComparable
- void FlushTransients()
- void PersistMyReferences(SessionBase session, bool inFlush)
- void ReadMe(TypeVersion typeVersion, byte[] memberBytes, ref int offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly)
- IOptimizedPersistable ShallowCopyTo(Page page)
- void ReadMe(TypeVersion typeVersion, byte[] memberBytes, ref int offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad)
-
public class License : OptimizedPersistable
- public License(string customer, uint customerId, string forUserName, string forHostName, string forDomainName, uint forMaxNumberOfClients, DateTime expireDate, int versionMajor, int versionMinor, int processorCount, DateTime? dateTimeCreated = default)
- public License(string customer, uint customerId, string forUserName, string forHostName, string forDomainName, uint forMaxNumberOfClients, DateTime expireDate, int versionMajor, int versionMinor, int processorCount)
-
public class NoValidVelocityDBLicenseFoundException : Exception
-
public class NullObjectException : Exception
-
public class ObjectDoesNotExistException : Exception
-
public class OfType : IEnumerable
-
public static class OfTypeExtension
-
public struct Oid : IComparable
- public ushort Slot { get; }
- public static ulong Encode(uint db, uint pageSlot)
-
public class OptimizedPersistable : IOptimizedPersistable, ICloneable
- public static void ReadMeUsingSchemaReflection(TypeVersion typeVersion, byte[] memberBytes, ref int offset, IOptimizedPersistable pObj, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly)
- public static void ReadMeUsingSchemaReflection(TypeVersion typeVersion, byte[] memberBytes, ref int offset, IOptimizedPersistable pObj, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad)
- public virtual void FlushTransients()
- public List<Array> GetArrayFieldValues()
- public virtual void PersistAllOf(TypeVersion typeVersion, bool addShapeNumber, PageInfo pageInfo, IOptimizedPersistable owner, SessionBase session, bool inFlush)
- public virtual void PersistMyReferences(SessionBase session, bool inFlush)
- public virtual void ReadMe(TypeVersion typeVersion, byte[] memberBytes, ref int offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly)
- public IOptimizedPersistable ShallowCopyTo(Page page)
- public virtual void ReadMe(TypeVersion typeVersion, byte[] memberBytes, ref int offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad)
- public void Write()
-
public class Page : IEnumerable, IComparable
- public Page(Database db, ushort pageNumber, uint shapeNumber, ushort objectsPerPage, bool doCache = true)
- public ushort ClearCashedObjects(SessionBase session)
- public int CompareTo(Page otherPage)
- public int CompareTo(object obj)
- public IEnumerator<IOptimizedPersistable> GetEnumerator()
- public IEnumerable<uint> PageShortIds()
- public IOptimizedPersistable Slot(ulong oid, bool openRefs, SessionBase session, Schema schema, bool iteration, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad = 2147483647, TypeVersion shape = null)
- public IEnumerator GetEnumerator()
-
public class PageCache : IEnumerable<Page>
-
public class PageDoesNotExistException : Exception
-
public class PageInfo
-
public class ServerTcpClient
-
public class UnexpectedException : Exception
VelocityDb.Collection
VelocityDb.Collection.BTree
-
public static class AssemblyExtensions
-
public abstract class BTreeBase<Key, Value> : BTreeNode, IEnumerable<Key>
-
public static class BTreeCollectionExtension
- public static int Count<Key>(this BTreeBase<Key, Key> sourceCollection)
-
public abstract class BTreeInternalBase<Key, Value> : BTreeNode
-
public abstract class BTreeLeafBase<Key, Value> : BTreeNode
- public virtual void GetValue(int index, ref Value value)
-
public abstract class BTreeMapBase<Key, Value> : BTreeBase<Key, Value>, IEnumerable<KeyValuePair<Key, Value>>, IEnumerable<Key>
-
public class BTreeMapIterator<Key, Value>
-
public class BTreeSetIterator<Key>
-
public class BTreeSetOidShort<Key> : BTreeBase<Key, Key>, IEnumerable<Key>
VelocityDb.Collection.Comparer
VelocityDb.Collection.Spatial
VelocityDb.Session
-
public class ServerClientSession : SessionBase
- public ServerClientSession(string systemDir, string systemHost = null, int waitForLockMilliseconds = 2000, bool optimisticLocking = true, bool inMemoryOnly = false, CacheEnum objectCachingDefaultPolicy = 1)
- public ServerClientSession(string systemDir, string systemHost = null, bool readOnly = false, int waitForLockMilliseconds = 2000, bool optimisticLocking = true)
- public static Type StringToType(string typeAsString)
- public virtual void CopyAllDatabasesTo(string directory)
- public Database OpenDatabaseValidateCached(uint dbNum, bool update = false, bool signalError = true)
-
public abstract class SessionBase : IEnumerable<object>, IComparable, IDisposable
- public static compressionKind DefaultCompressPages
- public static bool DoWindowsAuthentication
- public static readonly uint FileBytesChunkSize
- public static int s_serverTcpIpPortNumber
- public static string BaseDatabasePath { get; set; }
- protected bool checkForIndexes
- protected bool inTransaction
- protected Dictionary<Type, HashSet<PropertyInfo>> subsriptions
- protected Dictionary<Type, HashSet<Oid>> updated
- public static ushort MaxStringLengthToIntern { get; }
- public static ushort MinStringLengthToIntern { get; }
- public virtual bool AddToIndexInSeperateThread { get; set; }
- public bool EnableAutoPageFlush { get; set; }
- public bool InMemoryOnly { get; }
- public virtual bool InUpdateTransaction { get; }
- public CacheEnum ObjectCachingDefaultPolicy { get; set; }
- public string SystemDirectory { get; }
- public string SystemHostName { get; }
- public bool TraceIndexUsage { get; set; }
- public bool UseExternalStorageApi { get; set; }
- public int WaitForLockMilliseconds { get; set; }
- public virtual bool WriteToDiskInSeperateDatabaseThreads { get; set; }
- protected SessionBase(string systemDir, string systemHost, int waitForLockMilliseconds, bool optimisticLocking, bool enableCache, CacheEnum objectCachingDefaultPolicy, bool inMemoryOnly)
- public static Stream FileOpen(FileInfo fileInfo, FileAccess fileAccess, ref string errorMessage, FileShare fileShare, FileMode fileMode, int waitForLockMilliseconds, bool useExternalStorage, bool signalError = true)
- public static bool IsSameHost(string host1, string host2)
- public static IEnumerator<string> ParseCsvRow(string r)
- public static void SetMinMaxStringIntern(ushort minSize, ushort maxSize)
- public static Type StringToType(string typeAsString)
- protected SessionBase(string systemDir, string systemHost = null, int waitForLockMilliseconds = 2000, bool optimisticLocking = true, bool enableCache = true, bool useWeakSlotReferences = true)
- public AllObjects<T> AllObjects<T>(bool includeSubClasses = true, bool databasePerType = true)
- public AllObjects<T> AllObjects<T>()
- public void BeginUpdate(bool doRecoveryCheck, bool checkForBootRelocation)
- public void BeginUpdate(bool doRecoveryCheck, bool checkForBootRelocation, int openedFileCt = 0)
- public void ClearCachedObjects(Database db)
- protected virtual void Close(bool disposing)
- public virtual void Close()
- public virtual void Compact()
- public virtual void Compact(Database db)
- public int CompareTo(SessionBase otherSession)
- public virtual void CopyAllDatabasesTo(string directory)
- protected virtual void CopyDatabaseTo(Database db, Stream fileStream)
- public int CompareTo(object obj)
- public void CrossTransactionCacheAllDatabases(bool enable = true)
- public virtual void DeleteLocation(DatabaseLocation location, bool catalogOnly = false)
- protected virtual void deleteFromIndexes(IOptimizedPersistable pObjBeforeUpdates, TypeVersion typeVersion, TypeVersion objTypeVersion)
- public virtual void DeleteLocation(DatabaseLocation location)
- protected void doThePersistingOfMember(Placement place, IOptimizedPersistable pObj, DataMember m, bool inFlush)
- public virtual void FlushPageOf(OptimizedPersistable pObj)
- public IEnumerator<Database> GetEnumerator()
- public IEnumerator GetEnumerator()
- public void initDatabaseLocations()
- public bool IsWorkerThread()
- public virtual Database NewDatabase(uint dbNum, uint megaBytesPresize = 0, string name = null, bool signalError = true)
- public virtual Database NewDatabase(uint dbNum, uint megaBytesPresize = 0, string name = null)
- public OfType OfType(Type type, bool includeSubClasses = true, bool databasePerType = true)
- public object Open(Database db, ulong oid)
- public virtual IOptimizedPersistable Open(Database db, ulong oid, bool update, List<IOptimizedPersistable> toLoadMembers, bool inFlush, int graphDepth = 0, int graphDepthToLoad = 2147483647)
- public IOptimizedPersistable Open(ulong oid, bool update, List<IOptimizedPersistable> toLoadMembers, bool inFlush, int graphDepth, int graphDepthToLoad, bool signalNotExistError = false)
- public IOptimizedPersistable Open(Database db, ulong oid, bool update, List<IOptimizedPersistable> toLoadMembers, bool inFlush, int graphDepth, int graphDepthToLoad, bool signalNotExistError = false)
- public virtual Schema OpenSchema(bool update)
- public ulong Persist(object obj, IOptimizedPersistable parent, bool inFlush = false)
- public ulong Persist(object obj, OptimizedPersistable parent, bool inFlush = false)
- protected void PersistMembers(Placement place, IOptimizedPersistable pObj, bool inFlush)
- protected void PersistMembersAuto(IOptimizedPersistable pObj, Queue<IOptimizedPersistable> toPersist)
- public virtual void RestoreFrom(string host, string path, uint backupDbNum, DateTime upToTime)
- protected bool SetCachedSchema(bool forceRefresh = false)
- public virtual Schema schema(bool update)
- public Database TryDatabase(Placement place)
- public bool UpdateObject(IOptimizedPersistable obj, bool inFlush, bool deleteObjFromIndexes = true)
- protected virtual void updateIndexes(IOptimizedPersistable pObj, IOptimizedPersistable pObjBeforeUpdates, TypeVersion typeVersion, TypeVersion objTypeVersion, bool disableFlush)
- public bool updateObject(IOptimizedPersistable obj, bool inFlush, bool deleteObjFromIndexes = true)
- public void Verify()
-
public class SessionNoServer : SessionBase, IDisposable
- public SessionNoServer(string systemDir, int waitForLockMilliseconds = 5000, bool optimisticLocking = true, bool enableCache = true, CacheEnum objectCachingDefaultPolicy = 1)
- public SessionNoServer(string systemDir, bool readOnly = false, int waitForLockMilliseconds = 5000, bool optimisticLocking = true, bool enableCache = true, bool useWeakSlotReferences = true)
- public void Dispose()
-
public class SessionNoServerShared : SessionNoServer, IDisposable
-
public class SessionPool
-
public static class TypeExtensions
VelocityDb.TypeInfo
-
public class DataMember : OptimizedPersistable
- public string FieldName { get; }
- public TypeCode GetTypeCode { get; }
- public TypeCode TypeCode { get; }
- public static object DecodeToArray(byte[] memberBytes, Type type, ref int offset, IOptimizedPersistable o, Page page, bool useOidShort, bool openRefs, Schema schema, SessionBase session, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly)
- public static string DecodeToString(byte[] member, ref int offset, int numberOfBytes)
- public static string decodeToString(byte[] member, ref int offset, int numberOfBytes)
- public static Type StringToType(string typeAsString, SessionBase session, out bool typeUpdated)
- public static Type StringToType(string typeAsString, IOptimizedPersistable pObj, SessionBase session, out bool typeUpdated)
- public bool Equals(DataMember other)
-
public class Schema : OptimizedPersistable
- public static readonly ushort s_bootupTypeCount
- public TypeVersion GetTypeVersion(uint pageSlot, SessionBase session, bool usePersistent = false)
- public bool IsInternalType(ushort slotNumber)
- public TypeVersion RegisterClass(Type type, SessionBase session, bool inFlush = false)
- public const uint schemaDb = 1
- public const ushort schemaPage = 1
- public const ushort schemaSlot = 1
- public Dictionary<Type, VelocityDbType> lookupByType
- public BTreeSetOidShort<VelocityDbType> typeSet
- public Schema()
- public TypeVersion GetTypeVersion(uint pageSlot, bool usePersistent = false)
- public void initAfterRead(TypeVersion[] bootupTypes)
- public void persist(Database db)
- public TypeVersion registerClass(Type type, SessionBase session, bool inFlush = false)
- public IOptimizedPersistable slotFromShape(byte[] objectBytes, bool openRefs, SessionBase session, ulong oid, Page page, bool iteration, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad = 2147483647, TypeVersion shape = null)
- public TypeVersion updateClass(Type type, SessionBase session)
-
public class TypeVersion : OptimizedPersistable
- public bool AutoIncrement { get; set; }
- public ulong CountStart { get; }
- public bool IsFixedSize { get; }
- public bool IsString { get; }
- public VelocityDbType VelocityDbType { get; }
- public string EncodeForCsv(object obj, PageInfo pageInfo, SessionBase session)
- public bool Equals(TypeVersion other)
- public List<DataMember> GetDataMemberList()
- public void LoadMembers(IOptimizedPersistable toLoad, Schema schema, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, SessionBase session, bool primitivesOnly = false)
- public void ObjectFromStrings(string[] members, string[] fieldNames, SessionBase session, Schema schema)
- public void PersistRefences(object obj, bool addShapeNumber, PageInfo pageInfo, IOptimizedPersistable owner, SessionBase session, bool inFlush)
- public void SetCount(object obj, AutoPlacement autoPlacement)
- public void LoadMembers(IOptimizedPersistable toLoad, Schema schema, List<IOptimizedPersistable> toLoadMembers, int graphDepth, int graphDepthToLoad, SessionBase session)
-
public class VelocityDbType : OptimizedPersistable