SortedTreeFileSimpleWriterTKey, TValueCreateWithMetadata Method
Creates a new archive file using the specified parameters and writes data to it.
Namespace: SnapDB.Snap.StorageAssembly: 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
)
Public Shared Sub CreateWithMetadata (
pendingFileName As String,
completeFileName As String,
blockSize As Integer,
archiveIdCallback As Action(Of Guid),
treeNodeType As EncodingDefinition,
treeStream As TreeStream(Of TKey, TValue),
metadata As Byte(),
ParamArray flags As Guid()
)
public:
static void CreateWithMetadata(
String^ pendingFileName,
String^ completeFileName,
int blockSize,
Action<Guid>^ archiveIdCallback,
EncodingDefinition^ treeNodeType,
TreeStream<TKey, TValue>^ treeStream,
array<unsigned char>^ metadata,
... array<Guid>^ flags
)
SnapDB.Snap.Storage.SortedTreeFileSimpleWriter.CreateWithMetadata = function(pendingFileName, completeFileName, blockSize, archiveIdCallback, treeNodeType, treeStream, metadata, ... 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.