Click or drag to resize

MultiPartitionRecordReaderT Class

Record reader used for pull tasks with the ProcessAllInputPartitionsAttribute attribute.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IORecordReaderT
    Ookii.Jumbo.JetMultiPartitionRecordReaderT

Namespace:  Ookii.Jumbo.Jet
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
public sealed class MultiPartitionRecordReader<T> : RecordReader<T>

Type Parameters

T
The type of the records.

The MultiPartitionRecordReaderT type exposes the following members.

Constructors
  NameDescription
Public methodMultiPartitionRecordReaderT
Initializes a new instance of the MultiPartitionRecordReaderT class.
Top
Properties
  NameDescription
Public propertyAllowAdditionalPartitions
Gets or sets a value indicating whether the task may request additional partitions from the job server if it finishes the current ones.
Public propertyBytesRead
Gets the actual number of bytes read from the input.
(Inherited from RecordReaderT.)
Public propertyCurrentPartition
Gets the partition of the current record.
Public propertyCurrentRecord
Gets the current record.
(Inherited from RecordReaderT.)
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.
(Inherited from RecordReaderT.)
Public propertyPartitionCount
Gets the total number of partitions.
Public propertyProgress
Gets a number between 0 and 1 that indicates the progress of the reader.
(Overrides RecordReaderTProgress.)
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 propertyStopAtEndOfPartition
Gets or sets a value indicating whether reading records will halt at the end of the current partition.
Top
Methods
Events
Remarks

A pull task with the ProcessAllInputPartitionsAttribute attribute may try to cast its input record reader to this type to retrieve information about the number of partitions and the current partition.

However, if the input to a pull task with the ProcessAllInputPartitionsAttribute attribute is not a channel with multiple partitions per task, the input record reader will not be a MultiPartitionRecordReaderT so you should not assume that such a cast will always succeed.

See Also