ArchiveInitializerTKey, TValueCreateArchiveFile(Int64) Method

Creates a new SortedTreeTableTKey, TValue based on the settings passed to this class. Once created, it is up to he caller to make sure that this class is properly disposed of.

Definition

Namespace: SnapDB.Snap.Services.Writer
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public SortedTreeTable<TKey, TValue> CreateArchiveFile(
	long estimatedSize = -1
)

Parameters

estimatedSize  Int64  (Optional)
An optional estimated size (in bytes) for the archive file. Use a negative value to indicate no specific estimation.

Return Value

SortedTreeTableTKey, TValue
A new instance of SortedTreeTableTKey, TValue for archiving data.

Remarks

This creates a new SortedTreeTableTKey, TValue instance for archiving data. It can create the table in-memory or in a file, depending on the ServerSettings configuration. If the estimatedSize is specified (non-negative), the method attempts to create the table in a file with enough space to accommodate the estimated data size.

See Also