SortedTreeFileSimpleWriterTKey, TValueCreateWithMetadata Method

Creates a new archive file using the specified parameters and writes data to it.

Definition

Namespace: SnapDB.Snap.Storage
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static void CreateWithMetadata(
	string pendingFileName,
	string completeFileName,
	int blockSize,
	Action<Guid>? archiveIdCallback,
	EncodingDefinition treeNodeType,
	TreeStream<TKey, TValue> treeStream,
	byte[]? metadata,
	params Guid[] flags
)

Parameters

pendingFileName  String
The name of the pending archive file.
completeFileName  String
The name of the complete archive file.
blockSize  Int32
The size of data blocks in the archive.
archiveIdCallback  ActionGuid
An optional callback to invoke with the archive ID.
treeNodeType  EncodingDefinition
The encoding definition for tree nodes.
treeStream  TreeStreamTKey, TValue
The tree stream containing data to be written to the archive.
metadata  Byte
The metadata to be written to the archive.
flags  Guid
Optional flags associated with the archive.

See Also