 | MergeHelper<T>.WriteMerge Method (Stream, IList<RecordInput>, IList<RecordInput>, Int32, IComparer<T>, Boolean, String, String, CompressionType, Int32, Boolean) |
Writes the result of a merge pass to the specified.
Namespace:
Ookii.Jumbo.Jet
Assembly:
Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntaxpublic long WriteMerge(
Stream stream,
IList<RecordInput> diskInputs,
IList<RecordInput> memoryInputs,
int maxDiskInputsPerPass,
IComparer<T> comparer,
bool allowRecordReuse,
string intermediateOutputPath,
string passFilePrefix,
CompressionType compressionType,
int bufferSize,
bool enableChecksum
)
Public Function WriteMerge (
stream As Stream,
diskInputs As IList(Of RecordInput),
memoryInputs As IList(Of RecordInput),
maxDiskInputsPerPass As Integer,
comparer As IComparer(Of T),
allowRecordReuse As Boolean,
intermediateOutputPath As String,
passFilePrefix As String,
compressionType As CompressionType,
bufferSize As Integer,
enableChecksum As Boolean
) As Long
public:
long long WriteMerge(
Stream^ stream,
IList<RecordInput^>^ diskInputs,
IList<RecordInput^>^ memoryInputs,
int maxDiskInputsPerPass,
IComparer<T>^ comparer,
bool allowRecordReuse,
String^ intermediateOutputPath,
String^ passFilePrefix,
CompressionType compressionType,
int bufferSize,
bool enableChecksum
)
member WriteMerge :
stream : Stream *
diskInputs : IList<RecordInput> *
memoryInputs : IList<RecordInput> *
maxDiskInputsPerPass : int *
comparer : IComparer<'T> *
allowRecordReuse : bool *
intermediateOutputPath : string *
passFilePrefix : string *
compressionType : CompressionType *
bufferSize : int *
enableChecksum : bool -> int64
Parameters
- stream
- Type: System.IO.Stream
The stream to which the result of the pass is written. - diskInputs
- Type: System.Collections.Generic.IList<RecordInput>
The disk inputs. - memoryInputs
- Type: System.Collections.Generic.IList<RecordInput>
The memory inputs. - maxDiskInputsPerPass
- Type: System.Int32
The maximum number of disk inputs per merge pass. - comparer
- Type: System.Collections.Generic.IComparer<T>
The IComparer<T> to use, or null to use the default. Do not pass Default. - allowRecordReuse
- Type: System.Boolean
if set to true, the result of the pass will reuse the same instance of T for each pass. - intermediateOutputPath
- Type: System.String
The path to store intermediate passes. - passFilePrefix
- Type: System.String
The pass file prefix. - compressionType
- Type: Ookii.Jumbo.CompressionType
The type of the compression to use for intermediate passes. - bufferSize
- Type: System.Int32
The buffer size to use when writing output passes. - enableChecksum
- Type: System.Boolean
if set to true, checksums will be enabled for intermediate passes.
Return Value
Type:
Int64
The uncompressed size of the written data.
See Also