 | DfsInputStreamStopReadingAtPosition Property |
Gets or sets the position in the stream after which no data will be read.
Namespace: Ookii.Jumbo.DfsAssembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic long StopReadingAtPosition { get; set; }
Public Property StopReadingAtPosition As Long
Get
Set
public:
virtual property long long StopReadingAtPosition {
long long get () sealed;
void set (long long value) sealed;
}
abstract StopReadingAtPosition : int64 with get, set
override StopReadingAtPosition : int64 with get, set
Property Value
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