C# Class Raven.Database.Indexing.Index

This is a thread safe, single instance for a particular index.
Inheritance: IDisposable
Afficher le fichier Open project: nhsevidence/ravendb Class Usage Examples

Protected Properties

Свойство Type Description
indexDefinition Raven.Database.Indexing.IndexDefinition
logIndexing Logger
logQuerying Logger
name string

Private Properties

Свойство Type Description
CloneDocument Lucene.Net.Documents.Document
CreateDocumentFromFields RavenJObject
CreateIndexWriter Lucene.Net.Index.IndexWriter
CreateProperty RavenJToken>.KeyValuePair
GetSearcher IDisposable
RecreateSearcher void
WriteTempIndexToDiskIfNeeded void

Méthodes publiques

Méthode Description
CreateAnalyzer ( Analyzer defaultAnalyzer, ICollection toDispose ) : Lucene.Net.Analysis.PerFieldAnalyzerWrapper
Dispose ( ) : void
Flush ( ) : void
GetExtension ( string indexExtensionKey ) : IIndexExtension
IndexDocuments ( AbstractViewGenerator viewGenerator, IEnumerable documents, WorkContext context, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
Remove ( string keys, WorkContext context ) : void
SetExtension ( string indexExtensionKey, IIndexExtension extension ) : void
TryGetDocKey ( object current ) : string

Méthodes protégées

Méthode Description
AddDocumentToIndex ( IndexWriter currentIndexWriter, Lucene.Net.Documents.Document luceneDoc, Analyzer analyzer ) : void
Index ( Lucene.Net.Store.Directory directory, string name, Raven.Database.Indexing.IndexDefinition indexDefinition, AbstractViewGenerator viewGenerator ) : System
RetrieveDocument ( Lucene.Net.Documents.Document document, FieldsToFetch fieldsToFetch, float score ) : Raven.Database.Data.IndexQueryResult
RobustEnumerationIndex ( IEnumerable input, IEnumerable funcs, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
RobustEnumerationReduce ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
RobustEnumerationReduceDuringMapPhase ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
Write ( WorkContext context, Func action ) : void

Private Methods

Méthode Description
CloneDocument ( Lucene.Net.Documents.Document luceneDoc ) : Lucene.Net.Documents.Document
CreateDocumentFromFields ( Lucene.Net.Documents.Document document, IEnumerable fieldsToFetch ) : RavenJObject
CreateIndexWriter ( Lucene.Net.Store.Directory directory ) : IndexWriter
CreateProperty ( Field fld, Lucene.Net.Documents.Document document ) : RavenJToken>.KeyValuePair
GetSearcher ( IndexSearcher &searcher ) : IDisposable
RecreateSearcher ( ) : void
WriteTempIndexToDiskIfNeeded ( WorkContext context ) : void

Method Details

AddDocumentToIndex() protected méthode

protected AddDocumentToIndex ( IndexWriter currentIndexWriter, Lucene.Net.Documents.Document luceneDoc, Analyzer analyzer ) : void
currentIndexWriter Lucene.Net.Index.IndexWriter
luceneDoc Lucene.Net.Documents.Document
analyzer Lucene.Net.Analysis.Analyzer
Résultat void

CreateAnalyzer() public méthode

public CreateAnalyzer ( Analyzer defaultAnalyzer, ICollection toDispose ) : Lucene.Net.Analysis.PerFieldAnalyzerWrapper
defaultAnalyzer Lucene.Net.Analysis.Analyzer
toDispose ICollection
Résultat Lucene.Net.Analysis.PerFieldAnalyzerWrapper

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetExtension() public méthode

public GetExtension ( string indexExtensionKey ) : IIndexExtension
indexExtensionKey string
Résultat IIndexExtension

Index() protected méthode

protected Index ( Lucene.Net.Store.Directory directory, string name, Raven.Database.Indexing.IndexDefinition indexDefinition, AbstractViewGenerator viewGenerator ) : System
directory Lucene.Net.Store.Directory
name string
indexDefinition Raven.Database.Indexing.IndexDefinition
viewGenerator Raven.Database.Linq.AbstractViewGenerator
Résultat System

IndexDocuments() public abstract méthode

public abstract IndexDocuments ( AbstractViewGenerator viewGenerator, IEnumerable documents, WorkContext context, IStorageActionsAccessor actions, System.DateTime minimumTimestamp ) : void
viewGenerator Raven.Database.Linq.AbstractViewGenerator
documents IEnumerable
context WorkContext
actions IStorageActionsAccessor
minimumTimestamp System.DateTime
Résultat void

Remove() public abstract méthode

public abstract Remove ( string keys, WorkContext context ) : void
keys string
context WorkContext
Résultat void

RetrieveDocument() protected méthode

protected RetrieveDocument ( Lucene.Net.Documents.Document document, FieldsToFetch fieldsToFetch, float score ) : Raven.Database.Data.IndexQueryResult
document Lucene.Net.Documents.Document
fieldsToFetch FieldsToFetch
score float
Résultat Raven.Database.Data.IndexQueryResult

RobustEnumerationIndex() protected méthode

protected RobustEnumerationIndex ( IEnumerable input, IEnumerable funcs, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
funcs IEnumerable
actions IStorageActionsAccessor
context WorkContext
Résultat IEnumerable

RobustEnumerationReduce() protected méthode

protected RobustEnumerationReduce ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
func IndexingFunc
actions IStorageActionsAccessor
context WorkContext
Résultat IEnumerable

RobustEnumerationReduceDuringMapPhase() protected méthode

protected RobustEnumerationReduceDuringMapPhase ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
func IndexingFunc
actions IStorageActionsAccessor
context WorkContext
Résultat IEnumerable

SetExtension() public méthode

public SetExtension ( string indexExtensionKey, IIndexExtension extension ) : void
indexExtensionKey string
extension IIndexExtension
Résultat void

TryGetDocKey() public static méthode

public static TryGetDocKey ( object current ) : string
current object
Résultat string

Write() protected méthode

protected Write ( WorkContext context, Func action ) : void
context WorkContext
action Func
Résultat void

Property Details

indexDefinition protected_oe property

protected IndexDefinition,Raven.Database.Indexing indexDefinition
Résultat Raven.Database.Indexing.IndexDefinition

logIndexing protected_oe static_oe property

protected static Logger logIndexing
Résultat Logger

logQuerying protected_oe static_oe property

protected static Logger logQuerying
Résultat Logger

name protected_oe property

protected string name
Résultat string