Click or drag to resize

MergeRecordReaderT Class

Record reader that merges the records from multiple sorted input record readers.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IORecordReaderT
    Ookii.Jumbo.IOMultiInputRecordReaderT
      Ookii.Jumbo.JetMergeRecordReaderT

Namespace: Ookii.Jumbo.Jet
Assembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public sealed class MergeRecordReader<T> : MultiInputRecordReader<T>, 
	IConfigurable, IChannelMultiInputRecordReader, IHasAdditionalProgress

Type Parameters

T
The type of the records.

The MergeRecordReaderT type exposes the following members.

Constructors
 NameDescription
Public methodMergeRecordReaderT Initializes a new instance of the MergeRecordReaderT class.
Top
Properties
 NameDescription
Public propertyAdditionalProgress Gets the additional progress value.
Public propertyAllowRecordReuse Gets a value that indicates that this record reader is allowed to reuse record instances.
(Inherited from MultiInputRecordReaderT)
Public propertyBufferSize Gets the buffer size to use to read input files.
(Inherited from MultiInputRecordReaderT)
Public propertyBytesRead Gets the bytes read.
(Overrides MultiInputRecordReaderTBytesRead)
Public propertyChannel Gets or sets the input channel that this reader is reading from.
Public propertyCompressionType Gets the type of compression to use to read input files.
(Inherited from MultiInputRecordReaderT)
Public propertyCurrentInputCount Gets the current number of inputs that have been added to the MultiInputRecordReaderT for the currently active set of partitions.
(Inherited from MultiInputRecordReaderT)
Public propertyCurrentPartition Gets or sets the partition that calls to ReadRecord should return records for.
(Inherited from MultiInputRecordReaderT)
Public propertyCurrentRecord Gets the current record.
(Inherited from RecordReaderT)
Public propertyDfsConfiguration Gets or sets the configuration used to access the Distributed File System.
Public propertyHasFinished Gets a value indicating whether this instance has read all records.
(Inherited from RecordReaderT)
Public propertyHasRecords Gets a value that indicates whether there are records available on the data source that this reader is reading from.
(Inherited from RecordReaderT)
Public propertyInputBytes Gets the size of the records before deserialization of all record readers.
(Inherited from MultiInputRecordReaderT)
Public propertyJetConfiguration Gets or sets the configuration used to access the Jet servers.
Public propertyPartitionCount Gets the number of partitions assigned to this reader.
(Inherited from MultiInputRecordReaderT)
Public propertyPartitionNumbers Gets the partition numbers assigned to this reader.
(Inherited from MultiInputRecordReaderT)
Public propertyProgress Gets the combined progress of the record readers.
(Overrides MultiInputRecordReaderTProgress)
Public propertyReadTime Gets the time spent reading.
(Inherited from RecordReaderT)
Public propertyRecordsRead Gets the number of records that has been read by this record reader.
(Inherited from RecordReaderT)
Public propertySourceName Gets or sets the an informational string indicating the source of the records.
(Inherited from RecordReaderT)
Public propertyTaskContext Gets or sets the configuration for the task attempt.
Public propertyTotalInputCount Gets the total number of inputs readers that this record reader will have.
(Inherited from MultiInputRecordReaderT)
Top
Methods
 NameDescription
Public methodAddInput Adds the specified input to be read by this record reader.
(Overrides MultiInputRecordReaderTAddInput(IListRecordInput))
Public methodAssignAdditionalPartitions Assigns additional partitions to this record reader.
(Overrides MultiInputRecordReaderTAssignAdditionalPartitions(IListInt32))
Public methodDispose Cleans up all resources held by this StreamRecordReader{T}.
(Inherited from RecordReaderT)
Public methodEnumerateRecords Enumerates over all the records.
(Inherited from RecordReaderT)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodNextPartition Moves the current partition to the next partition.
(Inherited from MultiInputRecordReaderT)
Public methodNotifyConfigurationChanged Indicates the configuration has been changed. ApplyConfiguration(Object, DfsConfiguration, JetConfiguration, TaskContext) calls this method after setting the configuration.
Public methodReadRecord Reads a record.
(Inherited from RecordReaderT)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventCurrentPartitionChanged Event raised when the value of the CurrentPartition property changes.
(Inherited from MultiInputRecordReaderT)
Public eventCurrentPartitionChanging Event raised when the value of the CurrentPartition property is about to change.
(Inherited from MultiInputRecordReaderT)
Public eventHasRecordsChanged Occurs when the value of the HasRecords property changes.
(Inherited from RecordReaderT)
Top
Remarks

If Channel is not , the MergeRecordReaderT will use the SortTaskComparerSettingKey on the StageSettings of the input stage to determine the comparer to use. Otherwise, it will use the ComparerSetting of the current stage. If neither is specified, Default will be used.

See Also