SortedTreeFileOpenOrCreateTableTKey, TValue(EncodingDefinition, Int32) Method

Opens the default table for this TKey and TValue. If it does not exists, it will be created with the provided compression method.

Definition

Namespace: SnapDB.Snap.Storage
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public SortedTreeTable<TKey, TValue> OpenOrCreateTable<TKey, TValue>(
	EncodingDefinition storageMethod,
	int maxSortedTreeBlockSize = 4096
)
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>

Parameters

storageMethod  EncodingDefinition
The encoding method used to store data.
maxSortedTreeBlockSize  Int32  (Optional)
The maximum block size for the created SortedTreeTableTKey, TValue.

Type Parameters

TKey
The type parameter specifying the data type for keys.
TValue
The type parameter specifying the data type for values.

Return Value

SortedTreeTableTKey, TValue
A SortedTreeTableTKey, TValue instance associated with the specified storage method and options.

See Also