C# Class Raven.Database.Indexing.IndexStorage

Thread safe, single instance for the entire application
Inheritance: System.Runtime.ConstrainedExecution.CriticalFinalizerObject, IDisposable
Afficher le fichier Open project: nhsevidence/ravendb Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
EnsureInvariantCulture ( ) : IDisposable
OpenOrCreateLuceneDirectory ( Raven.Database.Indexing.IndexDefinition indexDefinition, string indexName = null ) : Lucene.Net.Store.System.IO.Directory

Private Methods

Méthode Description
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

Method Details

CreateIndexImplementation() public méthode

public CreateIndexImplementation ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : void
indexDefinition Raven.Database.Indexing.IndexDefinition
Résultat void

DeleteIndex() public méthode

public DeleteIndex ( string name ) : void
name string
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnsureInvariantCulture() protected static méthode

protected static EnsureInvariantCulture ( ) : IDisposable
Résultat IDisposable

FlushMapIndexes() public méthode

public FlushMapIndexes ( ) : void
Résultat void

FlushReduceIndexes() public méthode

public FlushReduceIndexes ( ) : void
Résultat void

GetIndexExtension() public méthode

public GetIndexExtension ( string index, string indexExtensionKey ) : IIndexExtension
index string
indexExtensionKey string
Résultat IIndexExtension

GetLuceneQuery() public méthode

public GetLuceneQuery ( string index, IndexQuery query, OrderedPartCollection indexQueryTriggers ) : Query
index string
query Raven.Database.Data.IndexQuery
indexQueryTriggers OrderedPartCollection
Résultat Query

HasIndex() public méthode

public HasIndex ( string index ) : bool
index string
Résultat bool

Index() public méthode

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
Résultat void

IndexStorage() public méthode

public IndexStorage ( IndexDefinitionStorage indexDefinitionStorage, InMemoryRavenConfiguration configuration ) : System
indexDefinitionStorage Raven.Database.Storage.IndexDefinitionStorage
configuration InMemoryRavenConfiguration
Résultat System

OpenOrCreateLuceneDirectory() protected méthode

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

Query() public méthode

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
Résultat IEnumerable

Reduce() public méthode

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
Résultat void

RemoveFromIndex() public méthode

public RemoveFromIndex ( string index, string keys, WorkContext context ) : void
index string
keys string
context WorkContext
Résultat void

SetIndexExtension() public méthode

public SetIndexExtension ( string indexName, string indexExtensionKey, IIndexExtension suggestionQueryIndexExtension ) : void
indexName string
indexExtensionKey string
suggestionQueryIndexExtension IIndexExtension
Résultat void