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: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
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
 NameDescription
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 methodReadRecord Reads a record.
(Inherited from RecordReaderT)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventHasRecordsChanged Occurs when the value of the HasRecords property changes.
(Inherited from RecordReaderT)
Top
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