C# Class RavenFS.Client.Shard.DefaultShardResolutionStrategy

Inheritance: IShardResolutionStrategy
Datei anzeigen Open project: hibernating-rhinos/RavenFS Class Usage Examples

Protected Properties

Property Type Description
ShardIds List

Public Methods

Method Description
DefaultShardResolutionStrategy ( IEnumerable shardIds, ShardStrategy shardStrategy ) : System
GenerateShardIdFor ( string filename, NameValueCollection metadata ) : string

Generate a shard id for the specified entity

GetShardIdForUpload ( string filename, NameValueCollection metadata ) : ShardResolutionResult
GetShardIdFromFileName ( string filename ) : string
PotentialShardsFor ( ShardRequestData requestData ) : IList

Selects the shard ids appropriate for the specified data.

Method Details

DefaultShardResolutionStrategy() public method

public DefaultShardResolutionStrategy ( IEnumerable shardIds, ShardStrategy shardStrategy ) : System
shardIds IEnumerable
shardStrategy ShardStrategy
return System

GenerateShardIdFor() public method

Generate a shard id for the specified entity
public GenerateShardIdFor ( string filename, NameValueCollection metadata ) : string
filename string
metadata System.Collections.Specialized.NameValueCollection
return string

GetShardIdForUpload() public method

public GetShardIdForUpload ( string filename, NameValueCollection metadata ) : ShardResolutionResult
filename string
metadata System.Collections.Specialized.NameValueCollection
return ShardResolutionResult

GetShardIdFromFileName() public method

public GetShardIdFromFileName ( string filename ) : string
filename string
return string

PotentialShardsFor() public method

Selects the shard ids appropriate for the specified data.
public PotentialShardsFor ( ShardRequestData requestData ) : IList
requestData ShardRequestData
return IList

Property Details

ShardIds protected_oe property

protected List ShardIds
return List