C# Класс Azavea.Open.DAO.Memory.SinglePropertyMemoryIndex

An index on a single field, keeps groups of the memory objects in a dictionary keyed by the values of the field.
Наследование: AbstractMemoryIndex
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCardinality ( DaoCriteria crit ) : int

Returns a number indicating how many breaks this index has for the properties used in the criteria. Roughly speaking, higher is better (though the number is an estimate, it is possible to have data that makes the index inefficient). If there are multiple indexes, the one that returns the highest number from this method will be used. An index should return 1 to indicate that it offers no value for this criteria.

GetPossibleMatches ( DaoCriteria crit ) : IList

Uses the index to return the smallest number of possible matches for this criteria.

Rebuild ( IEnumerable objects ) : void

This method rebuilds the index given a new list of data objects.

SinglePropertyMemoryIndex ( MemoryDaLayer layer, string property, IEnumerable objects ) : System

An index on a single field, keeps groups of the memory objects in a dictionary keyed by the values of the field.

Описание методов

GetCardinality() публичный Метод

Returns a number indicating how many breaks this index has for the properties used in the criteria. Roughly speaking, higher is better (though the number is an estimate, it is possible to have data that makes the index inefficient). If there are multiple indexes, the one that returns the highest number from this method will be used. An index should return 1 to indicate that it offers no value for this criteria.
public GetCardinality ( DaoCriteria crit ) : int
crit Azavea.Open.DAO.Criteria.DaoCriteria The query being run.
Результат int

GetPossibleMatches() публичный Метод

Uses the index to return the smallest number of possible matches for this criteria.
public GetPossibleMatches ( DaoCriteria crit ) : IList
crit Azavea.Open.DAO.Criteria.DaoCriteria The query being run.
Результат IList

Rebuild() публичный Метод

This method rebuilds the index given a new list of data objects.
public Rebuild ( IEnumerable objects ) : void
objects IEnumerable All the objects in the data store.
Результат void

SinglePropertyMemoryIndex() публичный Метод

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.
Результат System