C# 클래스 Azavea.Open.DAO.Memory.MultiPropertyMemoryIndex

This is an index that has a nested index (I.E. an index on two or more fields).
상속: AbstractMemoryIndex
파일 보기 프로젝트 열기: azavea/net-dao

공개 메소드들

메소드 설명
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.

MultiPropertyMemoryIndex ( MemoryDaLayer layer, string property, List nextProperties, IEnumerable objects ) : System

This is an index that has a nested index (I.E. an index on two or more fields).

Rebuild ( IEnumerable objects ) : void

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

비공개 메소드들

메소드 설명
AddObjectsToSubIndexes ( IEnumerable objects ) : void

메소드 상세

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

MultiPropertyMemoryIndex() 공개 메소드

This is an index that has a nested index (I.E. an index on two or more fields).
public MultiPropertyMemoryIndex ( MemoryDaLayer layer, string property, List nextProperties, IEnumerable objects ) : System
layer MemoryDaLayer Data access layer in use.
property string Property for this index.
nextProperties List Properties for the child indexes. Must have at least one.
objects IEnumerable All objects that will be in this index and its children.
리턴 System

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