Struct DataStoreTypes.FullDataSet<TDescriptor>
Wrapper for a set of storable items being passed to a data store.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public struct DataStoreTypes.FullDataSet<TDescriptor>
Type Parameters
Name | Description |
---|---|
TDescriptor | will be DataStoreTypes.ItemDescriptor or DataStoreTypes.SerializedItemDescriptor |
Remarks
Since the generic type signature for the data set is somewhat complicated (it is an ordered list of key-value pairs where each key is a DataStoreTypes.DataKind, and each value is another ordered list of key-value pairs for the individual data items), this type simplifies the declaration of data store methods and makes it easier to see what the type represents.
Constructors
| Edit this page View SourceFullDataSet(IEnumerable<KeyValuePair<DataKind, KeyedItems<TDescriptor>>>)
Constructs an instance of this wrapper type.
Declaration
public FullDataSet(IEnumerable<KeyValuePair<DataStoreTypes.DataKind, DataStoreTypes.KeyedItems<TDescriptor>>> data)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<DataStoreTypes.DataKind, DataStoreTypes.KeyedItems<TDescriptor>>> | data | the data set |
Properties
| Edit this page View SourceData
The wrapped data set; may be empty, but will not be null.
Declaration
public IEnumerable<KeyValuePair<DataStoreTypes.DataKind, DataStoreTypes.KeyedItems<TDescriptor>>> Data { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<DataStoreTypes.DataKind, DataStoreTypes.KeyedItems<TDescriptor>>> |
Methods
| Edit this page View SourceEmpty()
Shortcut for constructing an empty data set.
Declaration
public static DataStoreTypes.FullDataSet<TDescriptor> Empty()
Returns
Type | Description |
---|---|
DataStoreTypes.FullDataSet<TDescriptor> | an instance containing no data |