Class ValueTypeFactoryCollection
Manages the collection of IFieldValueTypeFactory
public class ValueTypeFactoryCollection : IEnumerable<KeyValuePair<string, IFieldValueTypeFactory>>, IEnumerable
- Inheritance
-
ValueTypeFactoryCollection
- Implements
- Inherited Members
Constructors
ValueTypeFactoryCollection(IReadOnlyDictionary<string, IFieldValueTypeFactory>)
Constructor
public ValueTypeFactoryCollection(IReadOnlyDictionary<string, IFieldValueTypeFactory> valueTypeFactories)
Parameters
valueTypeFactories
IReadOnlyDictionary<string, IFieldValueTypeFactory>
Properties
Count
The ammount of key/value pairs in the collection
public int Count { get; }
Property Value
Methods
GetDefaultValueTypes(ILoggerFactory, Analyzer)
Returns the default index value types that is used in normal construction of an indexer
public static IReadOnlyDictionary<string, IFieldValueTypeFactory> GetDefaultValueTypes(ILoggerFactory loggerFactory, Analyzer defaultAnalyzer)
Parameters
loggerFactory
ILoggerFactorydefaultAnalyzer
Analyzer
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, IFieldValueTypeFactory>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<string, IFieldValueTypeFactory>>
An enumerator that can be used to iterate through the collection.
GetRequiredFactory(string)
Returns the IFieldValueTypeFactory by name, if it's not found an exception is thrown
public IFieldValueTypeFactory GetRequiredFactory(string valueTypeName)
Parameters
valueTypeName
string
Returns
TryGetFactory(string, out IFieldValueTypeFactory)
Try get for the factory
public bool TryGetFactory(string valueTypeName, out IFieldValueTypeFactory fieldValueTypeFactory)
Parameters
valueTypeName
stringfieldValueTypeFactory
IFieldValueTypeFactory