Azavea.Open.DAO.Memory.SinglePropertyMemoryIndex.SinglePropertyMemoryIndex C# (CSharp) Method

SinglePropertyMemoryIndex() public method

An index on a single field, keeps groups of the memory objects in a dictionary keyed by the values of the field.
public SinglePropertyMemoryIndex ( MemoryDaLayer layer, string property, IEnumerable objects ) : System
layer MemoryDaLayer The data access layer in use.
property string The property to index on.
objects IEnumerable All the objects in this index.
return System
        public SinglePropertyMemoryIndex(MemoryDaLayer layer, string property,
            IEnumerable<MemoryObject> objects)
            : base(layer, property)
        {
            _values = SplitObjectsByProperty(objects);
        }