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

This is a thread safe, single instance for a particular index.
상속: IDisposable
파일 보기 프로젝트 열기: nhsevidence/ravendb 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
indexDefinition Raven.Database.Indexing.IndexDefinition
logIndexing Logger
logQuerying Logger
name string

Private Properties

프로퍼티 타입 설명
CloneDocument Lucene.Net.Documents.Document
CreateDocumentFromFields RavenJObject
CreateIndexWriter Lucene.Net.Index.IndexWriter
CreateProperty RavenJToken>.KeyValuePair
GetSearcher IDisposable
RecreateSearcher void
WriteTempIndexToDiskIfNeeded void

공개 메소드들

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

보호된 메소드들

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

비공개 메소드들

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

메소드 상세

AddDocumentToIndex() 보호된 메소드

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
리턴 void

CreateAnalyzer() 공개 메소드

public CreateAnalyzer ( Analyzer defaultAnalyzer, ICollection toDispose ) : Lucene.Net.Analysis.PerFieldAnalyzerWrapper
defaultAnalyzer Lucene.Net.Analysis.Analyzer
toDispose ICollection
리턴 Lucene.Net.Analysis.PerFieldAnalyzerWrapper

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

GetExtension() 공개 메소드

public GetExtension ( string indexExtensionKey ) : IIndexExtension
indexExtensionKey string
리턴 IIndexExtension

Index() 보호된 메소드

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
리턴 System

IndexDocuments() 공개 추상적인 메소드

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
리턴 void

Remove() 공개 추상적인 메소드

public abstract Remove ( string keys, WorkContext context ) : void
keys string
context WorkContext
리턴 void

RetrieveDocument() 보호된 메소드

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

RobustEnumerationIndex() 보호된 메소드

protected RobustEnumerationIndex ( IEnumerable input, IEnumerable funcs, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
funcs IEnumerable
actions IStorageActionsAccessor
context WorkContext
리턴 IEnumerable

RobustEnumerationReduce() 보호된 메소드

protected RobustEnumerationReduce ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
func IndexingFunc
actions IStorageActionsAccessor
context WorkContext
리턴 IEnumerable

RobustEnumerationReduceDuringMapPhase() 보호된 메소드

protected RobustEnumerationReduceDuringMapPhase ( IEnumerable input, IndexingFunc func, IStorageActionsAccessor actions, WorkContext context ) : IEnumerable
input IEnumerable
func IndexingFunc
actions IStorageActionsAccessor
context WorkContext
리턴 IEnumerable

SetExtension() 공개 메소드

public SetExtension ( string indexExtensionKey, IIndexExtension extension ) : void
indexExtensionKey string
extension IIndexExtension
리턴 void

TryGetDocKey() 공개 정적인 메소드

public static TryGetDocKey ( object current ) : string
current object
리턴 string

Write() 보호된 메소드

protected Write ( WorkContext context, Func action ) : void
context WorkContext
action Func
리턴 void

프로퍼티 상세

indexDefinition 보호되어 있는 프로퍼티

protected IndexDefinition,Raven.Database.Indexing indexDefinition
리턴 Raven.Database.Indexing.IndexDefinition

logIndexing 보호되어 있는 정적으로 프로퍼티

protected static Logger logIndexing
리턴 Logger

logQuerying 보호되어 있는 정적으로 프로퍼티

protected static Logger logQuerying
리턴 Logger

name 보호되어 있는 프로퍼티

protected string name
리턴 string