SortedTreeFile Class

Represents a individual self-contained archive file.

Definition

Namespace: SnapDB.Snap.Storage
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class SortedTreeFile : IDisposable
Inheritance
Object    SortedTreeFile
Implements
IDisposable

Properties

ArchiveSize Gets the size of the file.
FileName Gets the name of the file, but only the file, not the entire path.
FilePath Returns the name of the file. Returns Empty if this is a memory archive. This is the name of the entire path.
IsDisposed Determines if the archive file has been disposed.
IsMemoryFile Gets if the file is a memory file.
Snapshot Gets the last committed read-only snapshot associated with this instance.

Methods

ChangeExtension Changes the extension of the current file.
ChangeShareMode Reopens the file with different permissions.
CreateFile Creates an archive file.
CreateInMemory Creates a new in memory archive file.
Delete Closes and deletes the Archive File. Also calls dispose. If this is a memory archive, it will release the memory space to the buffer pool.
Dispose Closes the archive file. If there is a current transaction, that transaction is immediately rolled back and disposed.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetMetadataTKey, TValue Gets the metadata from the archive file associated with the specified key and value types.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OpenFile Opens an archive file.
OpenOrCreateTableTKey, TValue(EncodingDefinition, Int32) Opens the default table for this TKey and TValue. If it does not exists, it will be created with the provided compression method.
OpenOrCreateTableTKey, TValue(EncodingDefinition, String, Int32) Opens the default table for this TKey and TValue. If it does not exists, it will be created with the provided compression method.
OpenTableTKey, TValue Opens the default table for this TKey and TValue.
OpenTableTKey, TValue(String) Opens the default table for this TKey and TValue.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also