C# 클래스 Raven.Database.Indexing.IndexStorage

Thread safe, single instance for the entire application
상속: System.Runtime.ConstrainedExecution.CriticalFinalizerObject, IDisposable
파일 보기 프로젝트 열기: nhsevidence/ravendb 1 사용 예제들

공개 메소드들

메소드 설명
CreateIndexImplementation ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : void
DeleteIndex ( string name ) : void
Dispose ( ) : void
FlushMapIndexes ( ) : void
FlushReduceIndexes ( ) : void
GetIndexExtension ( string index, string indexExtensionKey ) : IIndexExtension
GetLuceneQuery ( string index, IndexQuery query, OrderedPartCollection indexQueryTriggers ) : Query
HasIndex ( string index ) : bool
Index ( string index, AbstractViewGenerator viewGenerator, IEnumerable docs, WorkContext context, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
IndexStorage ( IndexDefinitionStorage indexDefinitionStorage, InMemoryRavenConfiguration configuration ) : System
Query ( string index, IndexQuery query, bool>.Func shouldIncludeInResults, FieldsToFetch fieldsToFetch, OrderedPartCollection indexQueryTriggers ) : IEnumerable
Reduce ( string index, AbstractViewGenerator viewGenerator, IEnumerable mappedResults, WorkContext context, IStorageActionsAccessor actions, string reduceKeys ) : void
RemoveFromIndex ( string index, string keys, WorkContext context ) : void
SetIndexExtension ( string indexName, string indexExtensionKey, IIndexExtension suggestionQueryIndexExtension ) : void

보호된 메소드들

메소드 설명
EnsureInvariantCulture ( ) : IDisposable
OpenOrCreateLuceneDirectory ( Raven.Database.Indexing.IndexDefinition indexDefinition, string indexName = null ) : Lucene.Net.Store.System.IO.Directory

비공개 메소드들

메소드 설명
AssertAnalyzersValid ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : void
CreateIndexImplementation ( string directoryPath, Raven.Database.Indexing.IndexDefinition indexDefinition, Lucene directory ) : Index
GetCurrentIndexSearcher ( string indexName, IndexSearcher &searcher ) : IDisposable

if you are calling this method, you _have_ to call searcher.GetIndexReader().DecRef(); when you are done searching

GetIndexByName ( string indexName ) : Index
MakeRAMDirectoryPhysical ( RAMDirectory ramDir, string indexName ) : Lucene.Net.Store.System.IO.Directory

메소드 상세

CreateIndexImplementation() 공개 메소드

public CreateIndexImplementation ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : void
indexDefinition Raven.Database.Indexing.IndexDefinition
리턴 void

DeleteIndex() 공개 메소드

public DeleteIndex ( string name ) : void
name string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnsureInvariantCulture() 보호된 정적인 메소드

protected static EnsureInvariantCulture ( ) : IDisposable
리턴 IDisposable

FlushMapIndexes() 공개 메소드

public FlushMapIndexes ( ) : void
리턴 void

FlushReduceIndexes() 공개 메소드

public FlushReduceIndexes ( ) : void
리턴 void

GetIndexExtension() 공개 메소드

public GetIndexExtension ( string index, string indexExtensionKey ) : IIndexExtension
index string
indexExtensionKey string
리턴 IIndexExtension

GetLuceneQuery() 공개 메소드

public GetLuceneQuery ( string index, IndexQuery query, OrderedPartCollection indexQueryTriggers ) : Query
index string
query Raven.Database.Data.IndexQuery
indexQueryTriggers OrderedPartCollection
리턴 Query

HasIndex() 공개 메소드

public HasIndex ( string index ) : bool
index string
리턴 bool

Index() 공개 메소드

public Index ( string index, AbstractViewGenerator viewGenerator, IEnumerable docs, WorkContext context, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
index string
viewGenerator Raven.Database.Linq.AbstractViewGenerator
docs IEnumerable
context WorkContext
actions IStorageActionsAccessor
minimumTimestamp System.DateTime
리턴 void

IndexStorage() 공개 메소드

public IndexStorage ( IndexDefinitionStorage indexDefinitionStorage, InMemoryRavenConfiguration configuration ) : System
indexDefinitionStorage Raven.Database.Storage.IndexDefinitionStorage
configuration InMemoryRavenConfiguration
리턴 System

OpenOrCreateLuceneDirectory() 보호된 메소드

protected OpenOrCreateLuceneDirectory ( Raven.Database.Indexing.IndexDefinition indexDefinition, string indexName = null ) : Lucene.Net.Store.System.IO.Directory
indexDefinition Raven.Database.Indexing.IndexDefinition
indexName string
리턴 Lucene.Net.Store.System.IO.Directory

Query() 공개 메소드

public Query ( string index, IndexQuery query, bool>.Func shouldIncludeInResults, FieldsToFetch fieldsToFetch, OrderedPartCollection indexQueryTriggers ) : IEnumerable
index string
query Raven.Database.Data.IndexQuery
shouldIncludeInResults bool>.Func
fieldsToFetch FieldsToFetch
indexQueryTriggers OrderedPartCollection
리턴 IEnumerable

Reduce() 공개 메소드

public Reduce ( string index, AbstractViewGenerator viewGenerator, IEnumerable mappedResults, WorkContext context, IStorageActionsAccessor actions, string reduceKeys ) : void
index string
viewGenerator Raven.Database.Linq.AbstractViewGenerator
mappedResults IEnumerable
context WorkContext
actions IStorageActionsAccessor
reduceKeys string
리턴 void

RemoveFromIndex() 공개 메소드

public RemoveFromIndex ( string index, string keys, WorkContext context ) : void
index string
keys string
context WorkContext
리턴 void

SetIndexExtension() 공개 메소드

public SetIndexExtension ( string indexName, string indexExtensionKey, IIndexExtension suggestionQueryIndexExtension ) : void
indexName string
indexExtensionKey string
suggestionQueryIndexExtension IIndexExtension
리턴 void