Click or drag to resize

DfsInputStreamStopReadingAtPosition Property

Gets or sets the position in the stream after which no data will be read.

Namespace:  Ookii.Jumbo.Dfs
Assembly:  Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 2.0.0
Syntax
public long StopReadingAtPosition { get; set; }

Property Value

Type: Int64
The position after which Read(Byte, Int32, Int32) method will not return any data. The default value is the length of the stream.

Implements

IRecordInputStreamStopReadingAtPosition
Remarks

For a stream where RecordOptions is set to DoNotCrossBoundary you can use this property to ensure that no data after the boundary is read if you only wish to read records up to the boundary.

On the Jumbo DFS, crossing a block boundary will cause a network connection to be established and data to be read from a different data server. If you are reading records from only a single block (as is often the case for Jumbo Jet tasks) this property can be used to ensure that no data from the next block will be read.

Setting this property to a value other than the stream length if DoNotCrossBoundary is not set, or to a value that is not on a structural boundary can cause reading to halt in the middle of a record, and is therefore not recommended.

See Also