DS3 .NET Software Development Kit  3.0.0
Provides access to the Spectra Logic DS3 API through .NET.
Ds3.Helpers.Strategys.StreamFactory.ReadRandomAccessStreamFactory< TItem > Class Template Reference

Create one stream and receiving blobs in parallel using stream seeking More...

Inheritance diagram for Ds3.Helpers.Strategys.StreamFactory.ReadRandomAccessStreamFactory< TItem >:
Ds3.Helpers.Strategys.StreamFactory.IStreamFactory< TItem >

Public Member Functions

Stream CreateStream (Func< TItem, Stream > createStreamForTransferItem, IRangeTranslator< Blob, TItem > rangeTranslator, Blob blob, long length)
 Create a new stream for every blob returned by GetNextTransferItems More...
 
void CloseBlob (Blob blob)
 If a blob to stream strategy has been chosen than close the stream that associated with the completed blob More...
 
void CloseStream (TItem item)
 If a stream to stream strategy has been chosen than close the stream that associated with the completed stream More...
 

Detailed Description

Create one stream and receiving blobs in parallel using stream seeking

Template Parameters
TItem
Type Constraints
TItem :IComparable<TItem> 

Member Function Documentation

If a blob to stream strategy has been chosen than close the stream that associated with the completed blob

Parameters
blob

Implements Ds3.Helpers.Strategys.StreamFactory.IStreamFactory< TItem >.

void Ds3.Helpers.Strategys.StreamFactory.ReadRandomAccessStreamFactory< TItem >.CloseStream ( TItem  item)
inline

If a stream to stream strategy has been chosen than close the stream that associated with the completed stream

Parameters
item

Implements Ds3.Helpers.Strategys.StreamFactory.IStreamFactory< TItem >.

Stream Ds3.Helpers.Strategys.StreamFactory.ReadRandomAccessStreamFactory< TItem >.CreateStream ( Func< TItem, Stream >  createStreamForTransferItem,
IRangeTranslator< Blob, TItem >  rangeTranslator,
Blob  blob,
long  length 
)
inline

Create a new stream for every blob returned by GetNextTransferItems

Parameters
createStreamForTransferItem
rangeTranslator
blob
length
Returns

Implements Ds3.Helpers.Strategys.StreamFactory.IStreamFactory< TItem >.